1. Bertrand Bordage
  2. django-registration

Commits

Bertrand Bordage  committed dc3db2d

Replace a remaining User with get_user_model.

  • Participants
  • Parent commits 39415ef
  • Branches default

Comments (0)

Files changed (1)

File registration/models.py

View file
  • Ignore whitespace
         user. To disable this, pass ``send_email=False``.
         
         """
+        User = get_user_model()
         new_user = User.objects.create_user(username, email, password)
         new_user.is_active = False
         new_user.save()