Re: Not able to use ModelForm

2011-02-20 Thread The_Legend
Daniel thanks man for helping, and noticing problems in that dirty mess. i am basically very new to django. I hadn't given a field called address in the form, and + didnt give it blank=True in the model either so i guess it wasnt working, + what you said was also true. thanks a lot, hope u are

Re: Not able to use ModelForm

2011-02-20 Thread Daniel Roseman
On Sunday, February 20, 2011 12:05:12 PM UTC, The_Legend wrote: > > Oh sorry, i thought i wrote, but i guess it didnt convey the message. > > have written a registration form. so it takes data from this form then > first creates a user then i have a model called people in my app > called

Re: Not able to use ModelForm

2011-02-20 Thread The_Legend
Oh sorry, i thought i wrote, but i guess it didnt convey the message. have written a registration form. so it takes data from this form then first creates a user then i have a model called people in my app called mainapp. so i just need to add data to the database for this model. but i am not

Re: Not able to use ModelForm

2011-02-20 Thread Daniel Roseman
On Sunday, February 20, 2011 11:26:18 AM UTC, The_Legend wrote: > > i am not able to use model forms to input data for models in database. > > I'd get some treatment for that, if I were you. Seriously, what problem are you having? Are we supposed to guess? -- DR. -- You received this message

Not able to use ModelForm

2011-02-20 Thread The_Legend
i am not able to use model forms to input data for models in database. model.py -- gender_list = (('M', 'Male'), ('F', 'Female' )) class people(models.Model): userID = models.ForeignKey(User, unique=True) name = models.CharField('name',max_length=30) address =