#10212: Admin ChangeList doesn't apply 'order_by' clause specified by
ModelAdmin.queryset
---------------------------------------------+------------------------------
Reporter: [email protected] | Owner: nobody
Status: new | Milestone:
Component: django.contrib.admin | Version: 1.0
Resolution: | Keywords: ChangeList,
admin, ordering, queryset
Stage: Design decision needed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Comment (by [email protected]):
Yes -- I'm using [http://code.google.com/p/django-mptt/ django-mptt],
which has a custom manager to calculates the ordering of objects according
to hierarchy.
Currently, if you try to use a custom manager which defines it's own
ordering, the admin *drops* that order by clause.
--
Ticket URL: <http://code.djangoproject.com/ticket/10212#comment:3>
Django <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
-~----------~----~----~----~------~----~------~--~---