contrib.admin change_list reorders queryset
|Reported by:||davidschein@…||Owned by:||adrian|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||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.