diff --git a/monstage/models.py b/monstage/models.py index 0df6aaf..a4dbc63 100644 --- a/monstage/models.py +++ b/monstage/models.py @@ -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):