From 94b2529ab6d08c69c9cf001e41b0b21c2bf7881b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Thu, 3 May 2018 12:38:31 +0200 Subject: [PATCH] Use the correct user model when creating users --- users/forms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/users/forms.py b/users/forms.py index 7ba4fc3..da4d797 100644 --- a/users/forms.py +++ b/users/forms.py @@ -1,8 +1,10 @@ -from django.contrib.auth.models import User +from django.contrib.auth import get_user_model from django.contrib.auth.forms import UserCreationForm from django import forms from django.conf import settings +User = get_user_model() + class CreateUserForm(UserCreationForm): key = forms.CharField(