Use the correct user model when creating users

This commit is contained in:
Martin Pépin 2018-05-03 12:38:31 +02:00
parent 306ca2bcc8
commit 94b2529ab6

View file

@ -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(