Martin
On Sunday, April 22, 2012 6:44:53 PM UTC+2, Martin Tiršel wrote:
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/-/Y_DfzKjYiYwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment