diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2012-09-04 16:47:38 -0400 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2012-09-04 16:47:45 -0400 |
| commit | 4193a0f3d581c973542a2c72f2175d3b938b035d (patch) | |
| tree | 77a0688d4af14fdc0ebc22ae3d7a6f157bfb8471 | |
| parent | 51ee8507767c72807ad1e4e9982f5bef0e4413a5 (diff) | |
Negligible spacing fix in auth/forms.py
| -rw-r--r-- | django/contrib/auth/forms.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py index dfd039f018..75b3ca4ece 100644 --- a/django/contrib/auth/forms.py +++ b/django/contrib/auth/forms.py @@ -63,16 +63,16 @@ class UserCreationForm(forms.ModelForm): } username = forms.RegexField(label=_("Username"), max_length=30, regex=r'^[\w.@+-]+$', - help_text = _("Required. 30 characters or fewer. Letters, digits and " + help_text=_("Required. 30 characters or fewer. Letters, digits and " "@/./+/-/_ only."), - error_messages = { + error_messages={ 'invalid': _("This value may contain only letters, numbers and " "@/./+/-/_ characters.")}) password1 = forms.CharField(label=_("Password"), widget=forms.PasswordInput) password2 = forms.CharField(label=_("Password confirmation"), widget=forms.PasswordInput, - help_text = _("Enter the same password as above, for verification.")) + help_text=_("Enter the same password as above, for verification.")) class Meta: model = User @@ -107,9 +107,9 @@ class UserCreationForm(forms.ModelForm): class UserChangeForm(forms.ModelForm): username = forms.RegexField( label=_("Username"), max_length=30, regex=r"^[\w.@+-]+$", - help_text = _("Required. 30 characters or fewer. Letters, digits and " + help_text=_("Required. 30 characters or fewer. Letters, digits and " "@/./+/-/_ only."), - error_messages = { + error_messages={ 'invalid': _("This value may contain only letters, numbers and " "@/./+/-/_ characters.")}) password = ReadOnlyPasswordHashField(label=_("Password"), |
