Opened 14 years ago

Closed 13 years ago

#2870 closed enhancement (invalid)

contrib.admin change_list reorders queryset

Reported by: davidschein@… Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The admin change_list orders the list by PK DESC in the absence of any other ordering directives. Why bother? Doing this overrides, for instance, any ordering that a custom default manager introduces.

The attached patch (somewhat heavy-handedly) leaves the manager's ordering in place if there is no other ordering found.

Attachments (1)

order.patch (1.4 KB) - added by davidschein@… 14 years ago.

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by davidschein@…

Attachment: order.patch added


comment:1 Changed 13 years ago by David S. <davidschein@…>

Resolution: invalid
Status: newclosed

This patch screws up regular single-column sorting in the Admin interface. Chuck it.

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