Commit 55d2b4e3 authored by Luuk Scholten's avatar Luuk Scholten

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

Fix user change form after forcing lowercase

See merge request !401
parent 8678e0f2
......@@ -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)
Markdown is supported
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