I have an inline formset with three CharFields in each form of a child
object. For usability reasons, I'd like deleting to happen when all
fields of a form are blank (or whitespace-only) instead of using a
delete checkbox.

I'm looking at save_existing_objects() in django/forms/models.py:
399-421 and feeling a bit desperate. I don't see any trivial way to
override the delete checkbox mechanism.

Is the most reasonable approach to subclass BaseInlineFormSet,
override save_existing_objects() and use that for the formset=
argument of inlineformset_factory()?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to