List Info

Thread: class Meta: ordering by foreign key




class Meta: ordering by foreign key
user name
2006-08-31 14:09:33
is it possible?

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 gives
me very
weired <select> boxes in the admin interface....


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )