Opened 6 years ago

Last modified 6 years ago

#29835 closed Bug

list_filter does not follow admin ordering, only model meta — at Version 1

Reported by: Brillgen Developers Owned by: nobody
Component: contrib.admin Version: dev
Severity: Normal Keywords: filter
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Brillgen Developers)

Django admin class provides an ordering field which overrides the model meta ordering/defines the order in which objects should be displayed. This is respected by the new autocomplete field in foreign keys.

However the django admin list filter does not use the ordering from the related admin (if present) and only relies on the model meta ordering. This has a performance impact also as the model meta ordering applies to all queries, not just those for django admin.

Change History (1)

comment:1 by Brillgen Developers, 6 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top