#3397: [patch] Allow DB-level ordering by non-fields in admin list view
----------------------------------+-----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: reopened | Component: Admin interface
Version: SVN | Resolution:
Keywords: | Stage: Unreviewed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------------------+-----------------------------------------
Changes (by [EMAIL PROTECTED]):
* status: closed => reopened
* resolution: fixed =>
* stage: Ready for checkin => Unreviewed
Comment:
This doesn't quite work correctly. It allows clicking on the column title
to sort in ascending order but it doesn't display the triangle and a
second click will sort ascending rather than descending.
The fix is for admin_list.py line 104 to also check if the
admin_order_field equals cl.order_field.
Patch attached.
--
Ticket URL: <http://code.djangoproject.com/ticket/3397#comment:5>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---