Handle new CAS accounts (fix)
This commit is contained in:
parent
387ca01dda
commit
15070a9db4
1 changed files with 2 additions and 0 deletions
|
@ -28,7 +28,9 @@ class Normalien(models.Model):
|
|||
return unicode(self.user.username)
|
||||
|
||||
|
||||
def create_user_profile(sender, user, created, **kwargs):
|
||||
if created:
|
||||
Normalien.objects.get_or_create(user = user)
|
||||
cas_user_authenticated.connect(create_user_profile)
|
||||
|
||||
class Stage(models.Model):
|
||||
|
|
Loading…
Reference in a new issue