hi guys my question is: in my application i have a views with a method to insert a new user. the form sebd the informations and i register the user with:
us=User.objects.create_user(new_data['username'], new_data['email'], new_data['password']) this method return an User object, and i want to add a group to this object i have utilized us.groups.add('registered') #with the group name but fails grp=Group.objects.filter(name='registered').values() #get the group us.groups.add(grp['id']) #with the group name but fails please have a method to add one user to a specific group? i have readed the documentation but i dont view a response to my question thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---