Hello everybody, I have published a django.contrib.admin.models audit in a repository of mine <https://github.com/yourlabs/crudlfap/issues/87>, that is like the admin package but aspires to be useful also outside the admin:
- uses a TextField for object_id <https://github.com/django/django/blob/master/django/contrib/admin/models.py#L130-L132> which is not indexed, use an *indexed* CharField instead (to support ints and uuids), - upstream model does not have generic foreign key, so we don't have any of the querying features that would provide <https://docs.djangoproject.com/en/2.0/ref/contrib/contenttypes/#reverse-generic-relations>, and has palliative code instead <https://github.com/django/django/blob/master/django/contrib/admin/models.py#L130-L132> - status flags API is not extensible <https://github.com/django/django/blob/master/django/contrib/admin/models.py#L80-L88>, just make a setting and a default instead, - could have a better insertion helper <https://github.com/django/django/blob/master/django/contrib/admin/models.py#L20>, for example, just take an object argument and figure out content_type, object_id and object_repr (with str(object)), - encapsulates a similarely non extensible change message <https://github.com/django/django/blob/master/django/contrib/admin/models.py#L130-L132>, not used by crudlfap which generates default overridable messages in the views I'm posting this here because we are under no hurry to implement this on our own, if you want we could implement this is Django itself rather than in our own admin module. Have a beautiful day -- ∞ -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAC6Op18SPSrx1wCwnixG-nLz7n%3DcieC4C2Poq5iHoONZbjWL0A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
