Ok, I finally achieved this by overriding the inline formset, here is
all the code that I needed (in admin.py):
class WorkSeriesImagesFormset(BaseInlineFormSet):
def get_queryset(self):
return super(WorkSeriesImagesFormset,
self).get_queryset().order_by
('series_order')
Hello,
sorry if I missed the obvious answer - however I haven't found one in
the last hour.
I have an image model that has both series and year models as foreign
keys - i.e. it belongs to both a series and a year and can be sorted
differently within either. For ease of use in the admin I would l
2 matches
Mail list logo