Re: Multiple form validation

2009-02-20 Thread Karen Tracey
On Fri, Feb 20, 2009 at 1:21 PM, flagg wrote: > > Ok this is driving me nuts. I have two form objects that manipulate > two models. I am trying to run the is_valid() method on both and then > save the form data to the DB. > > def all_valid(form1, form2): >return form1.is_valid() and form2.i

Multiple form validation

2009-02-20 Thread flagg
Ok this is driving me nuts. I have two form objects that manipulate two models. I am trying to run the is_valid() method on both and then save the form data to the DB. def all_valid(form1, form2): return form1.is_valid() and form2.is_valid() def addorder(request): today = date.today()