class OrderAdmin(admin.ModelAdmin):
def save_model(self, request, obj, form, change):
self._obj = obj
super(OrderAdmin, self).save_model(request, obj, form, change)
def save_formset(self, request, form, formset, change):
order = self._obj
items = formset.save()
# Вся остальная логика
...
class OrderAdmin(admin.ModelAdmin):
def save_formset(self, request, form, formset, change):
order = form.save()
items = formset.save()
# Вся остальная логика
...