Re: (ModelForm) confusion

2014-08-04 Thread Kamal Kaur
> There where a few hooks in your view, for example: you check for > 'is_valid()' but there is no code to execute after. I've changed it a bit: > > > http://pastie.org/9431548 > > Thanks for the modifications. @Satinderpal Links are working. And yes, you got it right. Now I want that it

Re: (ModelForm) confusion

2014-07-30 Thread marc
Hi, you are calling 'is_valid' in your view, which should be an method call: a_valid = aform.is_valid*()* m_valid = mform.is_valid*()* p_valid = pform.is_valid*()* There where a few hooks in your view, for example: you check for 'is_valid()' but there is no code to execute after. I've changed

Re: (ModelForm) confusion

2014-07-30 Thread Satinderpal Singh
On Wed, Jul 30, 2014 at 12:25 PM, Kamal Kaur wrote: > Greetings! > > What I have done: > There are four tables, from which I have generated ModelForms. Getting > the WorkerDetails from one side, adding the salary and attendance > things from the other side as the view

(ModelForm) confusion

2014-07-30 Thread Kamal Kaur
Greetings! What I have done: There are four tables, from which I have generated ModelForms. Getting the WorkerDetails from one side, adding the salary and attendance things from the other side as the view says. If there is at least one row added in WorkerDetail table, then it directly asks to add