is it possible? I am on the latest trunk, 0.96-pre...

in the admin class, I can fake ordering by a foreign key field using
the table name and list_select_related

        class Admin:
                list_select_related = True
                ordering = ['myapp_mytable.myfield']

the same does not seem to work for class Meta, which results in very
unsorted <select> boxes in the admin interface....

simply putting the above ordering attribute in the Meta class

        class Meta:
                ordering = ['myapp_mytable.myfield']

yields an 'OperationalError' exception
with exception value (1109, "Unknown table 'myapp_mytable' in order
clause")

(no, I havent spelled myapp or mytable wrong, 'myapp_mytable'
definitely exists in my db....)

any hints?
thanks,
-frank


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to