On Sat, Jun 25, 2011 at 1:42 PM, CareerDhaba tech wrote:
> Hey,
>
> Thanks Karen for the reply. I have been trying many things on this form and
> trying to save both the models data using one form in a single instance. I
> did try the commit=False method too but it gave an error which i couldnt
>
Hey,
Thanks Karen for the reply. I have been trying many things on this form and
trying to save both the models data using one form in a single instance. I
did try the commit=False method too but it gave an error which i couldnt
figure out. Everytime i try doing something new an unknown error/exce
On Sat, Jun 25, 2011 at 1:00 PM, CareerDhaba tech wrote:
> The user model is getting saved with username and password but the
> userprofile isn;t :(
That is a somewhat misleading description of the problem since the code as
you have posted it would not just fail to save the userprofile it would
Whats the problem with this code ?
*models.py
*class userprofile(models.Model):
user = models.OneToOneField(User)
Firstname = models.CharField(max_length=20)
Middlename = models.CharField(max_length=20)
Surname = models.CharField(max_length=20)
Gender = models.CharField(max_le
4 matches
Mail list logo