#15349: Bound FormSet produces bound empty_form
-------------------------------------------+--------------------------------
 Reporter:  hidde-jan                      |          Owner:  nobody    
   Status:  new                            |      Milestone:            
Component:  Forms                          |        Version:  1.2       
 Keywords:  formset, is_bound, empty_form  |   Triage Stage:  Unreviewed
Has patch:  0                              |  
-------------------------------------------+--------------------------------
 The current implementation of `BaseFormSet` provides a method
 `_get_empty_form`. When a formset is bound, it supplies the data and files
 it received to the formclass. This results in the formset's empty_form
 being bound. This can lead to unexpected behaviour, especially when
 subclassing `forms.Form`.

 The supplied patch has the fix and a test that checks wether the
 empty_form of a bound formset is still unbound.

 Since the empty_form property was added for use as a template, there
 should be no difference, whatsoever, between the empty_form of a bound and
 an unbound formset.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15349>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to