I have a solution for you:

http://github.com/benatkin/tuneage/blob/master/tunes/admin.py

I'm going to post a blog entry to http://python-web.blogspot.com/ explaining
my code, but it might take a little while. In the meantime, let me know if
you need any help understanding the code, or run into any issues.

Ben

On Thu, Jul 15, 2010 at 7:15 AM, Scott Gould <zinck...@gmail.com> wrote:

> The Django *admin* only uses one field, ever.
>
> Bit of an irritating limitation, I grant you, but with the use of date
> hierarchies and list filters it's not too bad.
>
> On Jul 14, 7:40 pm, hjebbers <hjebb...@gmail.com> wrote:
> > is there a way to have a model class sorted on multiple fields?
> > in the meta class of my models I set the ordering, but django uses
> > only the first field for ordering;
> > a second field is just ignored.
> >
> > (I am aware that if a users starts to sort using table headers in the
> > admin interface only one field will be used. It would just be great to
> > have the initial ordering on 2 fields.)
> >
> > kind regards, henk-jan ebbers
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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