Handle new CAS accounts (fix)

This commit is contained in:
champeno 2015-05-25 00:28:16 +02:00
parent 387ca01dda
commit 15070a9db4

View file

@ -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):