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
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/5534FF21.6030303%40cafu.de.
For more options, visit https://groups.google.com/d/optout.