Re: Multiple forms into one form/trouble accessing form fields

2011-06-15 Thread Alasdair Nicol
https://docs.djangoproject.com/en/dev/ref/forms/api/#prefixes-for-forms Regards, Alasdair On 15/06/11 14:09, Thomas Weholt wrote: I got several forms I need to display in one page and post to one site. Actually, what I want to do is take all the fields from all the forms and display them as one

Multiple forms into one form/trouble accessing form fields

2011-06-15 Thread Thomas Weholt
I got several forms I need to display in one page and post to one site. Actually, what I want to do is take all the fields from all the forms and display them as one form and post all input to one view. To avoid collision between the form fields I want to prefix the fields somehow. Say I got three

Re: Form trouble

2009-05-17 Thread Alex Gaynor
On Sun, May 17, 2009 at 4:29 AM, zayatzz wrote: > > > > btw... what is tuple? i am not native english speaker so i fail to > > > understand some words like that. > > > > It's a python data structure. It's an "" Array "" . > > > > > > > > > > Thanks. :) > > Alan > > > Specifically tuple's are immu

Re: Form trouble

2009-05-17 Thread zayatzz
> > btw... what is tuple? i am not native english speaker so i fail to > > understand some words like that. > > It's a python data structure. It's an "" Array "" . > > > > Thanks. :) Alan --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: Form trouble

2009-05-17 Thread Jorge Bastida
> > > Call > if form.*is_valid()*: Sorry > > # use cleaned_data > > Jorge > > >> >> -- neo2001[at]gmail.com jorge[at]thecodefarm.com neo[at]art-xtreme.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Form trouble

2009-05-17 Thread Jorge Bastida
2009/5/17 zayatzz > > Thanks > > I actually tried that form.cleaned_data at one point but then i got > error that was something like: form object has no cleaned_data > attribute. Call if form.isvalid(): # use cleaned_data Jorge > > > Anyway, its working now - thanks alot. > > btw... wha

Re: Form trouble

2009-05-17 Thread zayatzz
Thanks I actually tried that form.cleaned_data at one point but then i got error that was something like: form object has no cleaned_data attribute. Anyway, its working now - thanks alot. btw... what is tuple? i am not native english speaker so i fail to understand some words like that. Alan

Re: Form trouble

2009-05-16 Thread Daniel Roseman
On May 16, 10:51 pm, Alex Gaynor wrote: > On Sat, May 16, 2009 at 4:49 PM, zayatzz wrote: > > > Hello > > > Been trying to figure out where the problem is, but its almost 1am and > > im out of ideas. > > > i have this model: > > class tuser (models.Model): > >        username = models.CharField(

Re: Form trouble

2009-05-16 Thread Alex Gaynor
On Sat, May 16, 2009 at 4:49 PM, zayatzz wrote: > > Hello > > Been trying to figure out where the problem is, but its almost 1am and > im out of ideas. > > i have this model: > class tuser (models.Model): >username = models.CharField(max_length=20, help_text="Enter Username > of your acco

Form trouble

2009-05-16 Thread zayatzz
Hello Been trying to figure out where the problem is, but its almost 1am and im out of ideas. i have this model: class tuser (models.Model): username = models.CharField(max_length=20, help_text="Enter Username of your account") email = models.EmailField(max_length=100, help_text=