Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-11 Thread Patrick Anderson
On Sat, 11 Aug 2007 14:36:50 +, Patrick Anderson wrote: > On Sat, 11 Aug 2007 14:34:05 +, Patrick Anderson wrote: > >> On Fri, 10 Aug 2007 18:46:18 -0700, Doug B wrote: >> >> > --- If I have 8 people, how sho

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-11 Thread Patrick Anderson
On Sat, 11 Aug 2007 14:34:05 +, Patrick Anderson wrote: > On Fri, 10 Aug 2007 18:46:18 -0700, Doug B wrote: > >>> --- >>> >>> If I have 8 people, how should bind POST data to a form object in the >>> view? >> >> You can us

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-11 Thread Patrick Anderson
On Fri, 10 Aug 2007 18:46:18 -0700, Doug B wrote: >> --- >> >> If I have 8 people, how should bind POST data to a form object in the >> view? > > You can use the 'prefix' option when instantiating the forms. Prefix > the form w

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-10 Thread Doug B
> --- > > If I have 8 people, how should bind POST data to a form object in the > view? You can use the 'prefix' option when instantiating the forms. Prefix the form with the corresponding form 'number' or other unique identifie

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-10 Thread Patrick Anderson
On Fri, 10 Aug 2007 13:32:32 -0700, Collin Grady wrote: > One method is to include a hidden input somewhere that indicates the > number of forms present. Then you can just use a for loop from 1 to that > number in the view to build the right number of forms again. > > > This is the raw html fo

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-10 Thread Collin Grady
One method is to include a hidden input somewhere that indicates the number of forms present. Then you can just use a for loop from 1 to that number in the view to build the right number of forms again. --~--~-~--~~~---~--~~ You received this message because you a

newforms + multiple sister forms submitted/processed in one user action

2007-08-10 Thread Patrick Anderson
This is a simplified PersonForm I've created with newforms library: class PersonForm(forms.Form): name = forms.CharField() first_name = forms.CharField() middle_name = forms.CharField(required = False) last_name = forms.CharField() The problem I have is that I need to update