Merge branch 'quick-fix-1665' of https://github.com/kaedroho/wagtail into kaedroho-quick-fix-1665

This commit is contained in:
Matt Westcott 2015-09-04 14:36:08 +01:00
commit 2d90d0dbf2

View file

@ -43,8 +43,13 @@ class UsernameForm(forms.ModelForm):
class UserCreationForm(UsernameForm):
required_css_class = "required"
error_messages = {
'duplicate_username': _("A user with that username already exists."),
'password_mismatch': _("The two password fields didn't match."),
}
is_superuser = forms.BooleanField(
label=_("Administrator"),
required=False,