Commits

Anonymous committed 4693b15

fix user relation for swapable user model

  • Participants
  • Parent commits 27bccd1

Comments (0)

Files changed (1)

File registration/models.py

     """
     ACTIVATED = u"ALREADY_ACTIVATED"
     
-    user = models.ForeignKey(User, unique=True, verbose_name=_('user'))
+    user = models.ForeignKey(settings.AUTH_USER_MODEL, unique=True,
+                             verbose_name=_('user'))
     activation_key = models.CharField(_('activation key'), max_length=40)
     
     objects = RegistrationManager()