Opened 18 years ago

Closed 18 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

Description

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@… 18 years ago.
patch

Download all attachments as: .zip

Change History (2)

by davidschein@…, 18 years ago

Attachment: order.patch added

patch

comment:1 by David S. <davidschein@…>, 18 years ago

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