Re: two forms in the same view

2008-12-18 Thread Jorge Bastida
Or use prefix theform(request.POST,prefix='form1Prefix') theform2(request.POST,prefix='form2Prefix') 2008/12/18 Stefan Tunsch > > You simply have to avoid using the same field name in the two forms. > > On 12/18/08, Alfredo Alessandrini wrote: > > > > Hi, > > > > can I use two form in the same

Re: two forms in the same view

2008-12-18 Thread Stefan Tunsch
You simply have to avoid using the same field name in the two forms. On 12/18/08, Alfredo Alessandrini wrote: > > Hi, > > can I use two form in the same view function? > > if request.method == 'POST': > form = FORM_1(request.POST) > if form.is_valid(): >.

two forms in the same view

2008-12-18 Thread Alfredo Alessandrini
Hi, can I use two form in the same view function? if request.method == 'POST': form = FORM_1(request.POST) if form.is_valid(): . form = FORM_2(request.POST) if form.is_valid(): . It's