Re: Invalid deleted forms in formsets break form data access

2012-08-28 Thread Iho
The worst in this situation is that we have 2012 3Q in the yard but the issue still open :( Четвер, 12 серпня 2010 р. 10:32:32 UTC+3 користувач Tomi Pieviläinen написав: > > I first approached the users-list to find out if I was simply doing > something wrong, but seems like there's no

Re: Invalid deleted forms in formsets break form data access

2010-08-12 Thread petr.marhoun
There is another ticket which try to solve this problem: http://code.djangoproject.com/ticket/13878 The proposed solution is to add new attribute "formset.valid_forms" - list of valid (and filled) forms. So problematic attribute "formset.cleaned_data" (which sometimes raises "AttributeError" for

Re: Invalid deleted forms in formsets break form data access

2010-08-12 Thread Karen Tracey
On Thu, Aug 12, 2010 at 3:32 AM, Tomi Pieviläinen wrote: > This problem is encountered when a user starts modifying a form but > decides that the whole set of data should be deleted anyway. Requiring > that the form should be fixed before deletion is possible seems like > an

Invalid deleted forms in formsets break form data access

2010-08-12 Thread Tomi Pieviläinen
I first approached the users-list to find out if I was simply doing something wrong, but seems like there's no (obvious) mistake. In a formset with can_delete, fs.is_valid() passes even if some of the deleted forms are invalid. However fs.cleaned_data tries to access every form, including the