List Info

Thread: creating account and user_profile simultaneously




creating account and user_profile simultaneously
country flaguser name
United States
2007-03-31 05:53:50
Can anyone help me with this - when user creates account in
the
system, i want him to fill in his profile as well. I suppose
I need to
edit the view, and add two forms, one for profile, one for
user
their. But how do I get user's ID after new_user =
form.save()? Get
the latest user?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: creating account and user_profile simultaneously
country flaguser name
United Kingdom
2007-03-31 06:14:42
On Sat, Mar 31, 2007 at 03:53:50AM -0700, true.cheshiregmail.com
wrote:
> 
> Can anyone help me with this - when user creates
account in the
> system, i want him to fill in his profile as well. I
suppose I need to
> edit the view, and add two forms, one for profile, one
for user
> their. But how do I get user's ID after new_user =
form.save()? Get
> the latest user?

After the save, the new_user object should have the id. It
should be the
user object that was just saved.

hope that helps,
-- 
Brett Parker

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )