Alex Rivera | Logout

Django Admin: How do I set the ordering of inline elements?

Asked 2010-08-11T22:08:40.877
36

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?

Edit
Report

1 Answer

3

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.


Update: The ticket is marked as fixed.

answered 2010-08-11T22:21:19.830

Your Answer