Re: Setting a user to have particular permission group when registering with django-registration?

2010-01-24 Thread Peter Bengtsson
Use signals. django-registration will create a new User so you can do something like this: from django.db.models.signals import post_save def give_permission(sender, user, created, **__): if created: user.groups.add(u"My group") post_save.connect(give_permission, sender=User) If you

Setting a user to have particular permission group when registering with django-registration?

2010-01-21 Thread littlejim84
I'm using django-registration and want to set a user to have a paricular permission group when they sign in. What is the best way to implement this without messing with the source of the actual app? Any information at all would be good. I'm having no luck at all on the IRC chat group. James --