Friday, December 30, 2011

Re: sorting of foreign key elements

may be attribute  ModelAdmin.ordering can work for you , it was in docs/ref/contrib/admin/index.txt

attribute:: ModelAdmin.ordering
    Set ordering to spcify how lists of objects should be ordered in the Django admin views. This should be a list or tuple in the same format as a models's django.db.models.Options.ordering parameter
If this isn't provided, the Django admin will use the models's default ordering

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment