On Jun 17, 8:17 pm, Rajesh D <rajesh.dha...@gmail.com> wrote:
> Hi Josh,
>
> On Jun 17, 10:25 am, Joshua Russo <joshua.rupp...@gmail.com> wrote:
>
> > Is there a generally accepted workaround for the problem of sorting
> > relational models by more than one field? I have a model that
> > represents recurring payments between a person and an object and it
> > would be really nice to order by the object, year, and creation date
> > in the admin app change list.
>
> You can also override the queryset method in your admin class to
> return a queryset that's sorted in the order that you need to display
> in the admin change list view:
>
> http://code.djangoproject.com/browser/django/trunk/django/contrib/adm...
>
> -Raj D

I think that might work just fine. Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to