Commit 3b59a0e29647a5d7d0cd64d4ff5e92b6842aa120

Authored by Macartur Sousa
1 parent 1e41fe24

Fixing invalid user message in forms.py

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
colab/accounts/forms.py
@@ -201,7 +201,8 @@ class UserCreationForm(UserForm): @@ -201,7 +201,8 @@ class UserCreationForm(UserForm):
201 ". Letter, digits and _")), 201 ". Letter, digits and _")),
202 error_messages={ 202 error_messages={
203 'invalid': _(("This value may contain only" 203 'invalid': _(("This value may contain only"
204 - ". Letters, digits and _"))}) 204 + " letters, numbers and _."))}
  205 + )
205 password1 = forms.CharField(label=_("Password"), 206 password1 = forms.CharField(label=_("Password"),
206 widget=forms.PasswordInput) 207 widget=forms.PasswordInput)
207 password2 = forms.CharField(label=_("Password confirmation"), 208 password2 = forms.CharField(label=_("Password confirmation"),