Re: HowTo assign user to group at registration

2007-04-03 Thread TaMeR
On Apr 3, 3:25 am, Atilla <[EMAIL PROTECTED]> wrote: > On 03/04/07, TaMeR <[EMAIL PROTECTED]> wrote: > group = Group.objects.get(condition) > new_user.groups.add(group) > > I'm not sure why it doesn't raise errors there though, if .add() only > accepts a related object. Thanks, I will try th

Re: HowTo assign user to group at registration

2007-04-03 Thread Atilla
On 03/04/07, TaMeR <[EMAIL PROTECTED]> wrote: > > > I use two registration forms one for clients one for vendors. > Depending on form used I would like to assign the user to a group. > > How do I use new_user.groups.add('Client') > > Below is my code that does not raise any errors but also does no

HowTo assign user to group at registration

2007-04-02 Thread TaMeR
I use two registration forms one for clients one for vendors. Depending on form used I would like to assign the user to a group. How do I use new_user.groups.add('Client') Below is my code that does not raise any errors but also does not add the user to the group. = CODE = def registe