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.
* status: new => closed
* resolution: => duplicate
Comment:
Duplicate of #25671, see
[https://code.djangoproject.com/ticket/25671#comment:12 comment].
--
Ticket URL: <https://code.djangoproject.com/ticket/32482#comment:1>