mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-02 20:44:53 +00:00
Merge branch 'quick-fix-1665' of https://github.com/kaedroho/wagtail into kaedroho-quick-fix-1665
This commit is contained in:
commit
2d90d0dbf2
1 changed files with 6 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue