views:

19

answers:

1

With a normal ModelAdmin class I can set the ordering with:

ordering = ("field_name",)

There seems to be no option to set ordering for InlineModelAdmin. Is there a way to get the inline elements to sort by a particular field?

+1  A: 

There's actually a ticket for this, with a patch here: http://code.djangoproject.com/ticket/13862

Don't know if it actually works, though.

Sævar