Evert
9f725b4c46
WARNING! This commit requires you to re-migrate the database from the beginning, because AUTH_USER_MODEL can only be set before the initial migration.
7 lines
182 B
Python
7 lines
182 B
Python
from django.contrib.auth.forms import UserChangeForm
|
|
from .models import User
|
|
|
|
class SpecialUserChangeForm(UserChangeForm):
|
|
class Meta(UserChangeForm.Meta):
|
|
model = User
|