Commit 7b3207ce authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Merge branch 'fix/user-change-form-lowercase' into 'master'

Fix user change form after forcing lowercase

See merge request !401
parents 8678e0f2 f148f64f
......@@ -2,6 +2,8 @@ from __future__ import unicode_literals
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserChangeForm as BaseUserChangeForm
from django.contrib.auth.forms import UserCreationForm as BaseUserCreationForm
from django.template import loader
from django.utils import translation
from django.utils.translation import ugettext
......@@ -22,7 +24,7 @@ class MemberForm(forms.ModelForm):
model = Member
class UserCreationForm(forms.ModelForm):
class UserCreationForm(BaseUserCreationForm):
# Don't forget to edit the formset in!
# This is a stupid quirk of the user admin.
......@@ -72,7 +74,7 @@ class UserCreationForm(forms.ModelForm):
class UserChangeForm(forms.ModelForm):
class UserChangeForm(BaseUserChangeForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment