On Mon, Aug 9, 2010 at 8:23 AM, Tomi Pieviläinen <hu...@kapsi.fi> wrote:
> (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? > What version of Django? This sounds a lot like: http://code.djangoproject.com/ticket/11801 which should be fixed in latest 1.1.X and 1.2.X. Karen -- http://tracey.org/kmt/ -- 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.