Re: initial data to Formset causing problem

2011-11-10 Thread Bill Freeman
Have you called form.is_valid() somewhere that you're not showing? On Wed, Nov 9, 2011 at 7:15 AM, Asif Jamadar wrote: > I’m assigning initial data to the field of each formset dynamically. But > when I’m trying to save that initial data it’s throwing “Key Error” in > cleaned data. Any solution?

initial data to Formset causing problem

2011-11-09 Thread Asif Jamadar
I'm assigning initial data to the field of each formset dynamically. But when I'm trying to save that initial data it's throwing "Key Error" in cleaned data. Any solution? Here is the code: In views.py for form in formset.forms: question = form.save(commit=Fal