Hello,
I have a formset and some JavaScript to add more forms into this formset.
In a view, I iterate through the formset saving (not a ModelForm just Form
with save method) each form:
for form in formset:
form.save()
But I want to ignore empty forms that were added by JavasScript and not
removed. How can I do this?
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/jzQaDGNkDacJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.