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?
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?
This works now so you can just do something like:
class MyModelInline(admin.TabularInline):
model = MyModel
ordering = ("field_name",)