Dear Django fellows,
I use a ModelAdmin.save_formset() method exactly like in the Django Admin documentation:
https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_formset
This is the exact code:
def save_formset(self, request, form, formset, change):
if formset.model == AUB:
instances = formset.save(commit=False)
for instance in instances:
# For testing, intentionally do nothing else here!
instance.save()
formset.save_m2m()
else:
return super(StaffAdmin, self).save_formset(request, form, formset, change)
The problem is, if I check the "delete?" checkbox of an AUB inline instance in order to
delete it, there is no error, but the instance is not deleted.
Why is this, and what can I do please?
Many thanks and best regards,
Carsten