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 want more control such that it's only when they use the django-
registration view then you can create your own view called register
and let it call
django-registration's registrer()


On Jan 21, 4:32 pm, littlejim84 <james.morris1...@googlemail.com>
wrote:
> 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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to