#32482: Overriding model and/or application order in Admin application is
complex
and incosistent
------------------------------------------------+------------------------
Reporter: Roman | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.admin | Version: 3.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
Sometimes model names are so unfortunate that default alphabetical order
of models in contrib.admin application makes no sense at all.
The same applies to applications themselves. When there are many
applications or many models within application there is a natural need to
group them up logically.
Reordering of models is covered in many online resources, but the very
process is so inconsistent and complex, that few get it right.
For instance this one: https://jamiecounsell.me/sort-apps-in-the-django-
admin/ does not address ordering in app_index.
Neither does this one: https://books.agiliq.com/projects/django-admin-
cookbook/en/latest/set_ordering.html
Even if we put aside incompleteness, both methods seem like too much
hustle for such simple task.
I propose to modify index, app_index and get_app_list in such way that
overriding of only get_app_list will be enough to reorder models.
I propose a patch for this improvement:
https://github.com/django/django/pull/13918
After applying this patch overriding of get_app_list only will be enough
to reorder models in index and app_index in a simple and consistent way.
--
Ticket URL: <https://code.djangoproject.com/ticket/32482>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.b67cee10e929a268dd6c5e889866963d%40djangoproject.com.