Re: Bound formset.empty_form after posting formset

2011-02-19 Thread Hidde-Jan Jongsma
Hi Carl, I made a ticket and provided a patch + test. I have not yet checked the behavior in django.contrib.admin, but since the formclass is initialized with empty_permitted=True, the admin will *probably* not be affected, since it would deal with empty forms but without errors. This is the

Re: Bound formset.empty_form after posting formset

2011-02-19 Thread Hidde-Jan Jongsma
(sorry if this shows up twice) Hi Carl, I made a ticket and provided a patch + test. I have not yet checked the behavior in django.contrib.admin, but since the formclass is initialized with empty_permitted=True, the admin will *probably* not be affected, since it would deal with empty forms but

Re: Bound formset.empty_form after posting formset

2011-02-18 Thread Carl Meyer
Hi Hidde-Jan, On Feb 18, 10:20 am, Hidde-Jan Jongsma wrote: > Lately, I've been working a lot with Django's modelformsets in > combination with javascript. The BaseFormSet implements a handy method > _get_empty_form, accessible through the empty_form property. This > method

Bound formset.empty_form after posting formset

2011-02-18 Thread Hidde-Jan Jongsma
Dear Django developers, Lately, I've been working a lot with Django's modelformsets in combination with javascript. The BaseFormSet implements a handy method _get_empty_form, accessible through the empty_form property. This method checks whether formset.is_bound is True, and if it is, updates the