#11160: Formset non_form_errors returns ErrorList() if is_valid is not called
------------------------------------------------+---------------------------
 Reporter:  vbmendes                            |       Owner:  nobody    
   Status:  new                                 |   Milestone:            
Component:  Forms                               |     Version:  SVN       
 Keywords:  formset non_form_errors validation  |       Stage:  Unreviewed
Has_patch:  1                                   |  
------------------------------------------------+---------------------------
 If Formset.non_form_errors() is called before Formset.is_valid(), it will
 return an empty ErrorList.
 Let's pretend we have two formsets in one view and we make this test: if
 formset1.is_valid() and formset2.is_valid(). If formset1 is not valid,
 formset2's is_valid() will not be called. It means that the user will have
 to fix all the formset1's validation erros before knowing that formset2
 also has errors. It's annoying for the user.

 I wrote a little patch to fix this issue. Just changing a little the
 Formset.non_form_errors() function.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11160>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to