(Using formset_factory, if that makes a difference)

If the user fills a form in formset incompletely and then marks it for
deletion, my form handling dies horribly. The deleted forms prevent
formset.cleaned_data from working as they don't validate and thus the
form doesn't have a cleaned_data attribute. If I try to iterate over
formset.deleted_forms and delete the forms from formset.forms, then
formset.cleaned_data crashes due to index out of range.

How should I be handling these invalid forms the user didn't want
anyway?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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