Re: Django forms and relationships

2009-03-17 Thread tdelam
Ah nevermind I got it worked out now. Thanks for the reply Yaniv On Mar 17, 9:39 am, tdelam wrote: > Hi Yaniv, > > Thanks, I did give that a try before posting here since it just made > sense but I always received a invalid keyword argument for this > function when doing so.

Re: Django forms and relationships

2009-03-17 Thread tdelam
Hi Yaniv, Thanks, I did give that a try before posting here since it just made sense but I always received a invalid keyword argument for this function when doing so. Is there something else I should be doing? On Mar 17, 4:44 am, Yaniv Haber wrote: > You can do it in the

Re: Django forms and relationships

2009-03-17 Thread Yaniv Haber
You can do it in the same save. After you have the user object created, use it to create a UserProfile object: new_profile = UserProfile.objects.create(, user_fk=new_user,...) If you don't own the form (it comes from some package you don't want to change) then you can always inherit it and

Django forms and relationships

2009-03-16 Thread tdelam
Hi, I am using the User model and trying to store additional information about the person registering. I have a model called UserProfile with a few additional fields and a FK to the User model. I now have a forms.py for my forms which consists of: http://dpaste.com/hold/15470/ My question is