Re: Custom Ordering and Grouping of Models in Django Admin

2022-06-17 Thread Jacob Rief
Hi Mariusz, On Thursday, June 16, 2022 at 7:20:23 PM UTC+2 Mariusz Felisiak wrote: > It's already solved in Django 4.1+ by > https://github.com/django/django/commit/2bee0b4328319eaf6a0d1686677d629f2ecf6dec. > > You can now override get_app_list() to change the default order on the > admin

Re: Custom Ordering and Grouping of Models in Django Admin

2022-06-16 Thread Mariusz Felisiak
Hi Jacob, It's already solved in Django 4.1+ by https://github.com/django/django/commit/2bee0b4328319eaf6a0d1686677d629f2ecf6dec. You can now override get_app_list() to change the default order on the admin index page. See docs

Re: Custom Ordering and Grouping of Models in Django Admin

2022-06-16 Thread Jacob Rief
Hi, just encountered this same problem today. As Roman reported in ticket-32484 : > 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 applicat

Re: Custom Ordering and Grouping of Models in Django Admin

2021-09-16 Thread Mariusz Felisiak
Hi, Thanks for the proposition. It was discussed few times in the past. AdminSite.get_app_list() could be used to re-arrange models and apps, see ticket-5986 and its duplicates ticket-25671 and ticke

Custom Ordering and Grouping of Models in Django Admin

2021-09-16 Thread Vasanth Mohan
As the numbers Models in an app grows, it becomes tedious to find the model we are searching for in a long list on the index page (and navigation bar) of the Django admin As a part of a new project, I wanted to reorder and logically group models that do not necessarily reflect the apps of the p