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
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
--
2 matches
Mail list logo