diff -r 622f5d1955b6 -r b707607e8a38 server/authentication/models.py --- a/server/authentication/models.py Wed May 27 19:06:00 2015 +0200 +++ b/server/authentication/models.py Thu May 28 09:56:40 2015 +0200 @@ -2,10 +2,12 @@ from django.contrib.auth.models import AbstractUser from django.db import models +import settings + class AmmicoUser(AbstractUser): idUser = models.CharField(max_length=50, blank=True) class Profile(models.Model): - user = models.OneToOneField(AmmicoUser) + user = models.OneToOneField(settings.AUTH_USER_MODEL) image = models.URLField(max_length=2048, blank=True) \ No newline at end of file