Opened 6 years ago

Last modified 6 years ago

#29835 closed Bug

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

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

Django admin class provides an ordering field which overrides (or defines) the order in which objects should be displayed. This is respected by the new autocomplete field also 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 (0)

Note: See TracTickets for help on using tickets.
Back to Top