Commit 17de13f6522fc213dc08a15b9859713b06e37f4d
1 parent
fc9e197b
Exists in
master
and in
5 other branches
Fixing non ASC-II caracteres
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
core/forms.py
@@ -12,7 +12,7 @@ class RegisterUserForm(forms.ModelForm): | @@ -12,7 +12,7 @@ class RegisterUserForm(forms.ModelForm): | ||
12 | def clean_email(self): | 12 | def clean_email(self): |
13 | email = self.cleaned_data['email'] | 13 | email = self.cleaned_data['email'] |
14 | if User.objects.filter(email = email).exists(): | 14 | if User.objects.filter(email = email).exists(): |
15 | - raise forms.ValidationError('Já existe um usuário cadastrado com este E-mail') | 15 | + raise forms.ValidationError('Ja existe um usuario cadastrado com este E-mail') |
16 | return email | 16 | return email |
17 | 17 | ||
18 | def clean_password(self): | 18 | def clean_password(self): |
@@ -35,7 +35,7 @@ class RegisterUserForm(forms.ModelForm): | @@ -35,7 +35,7 @@ class RegisterUserForm(forms.ModelForm): | ||
35 | password2 = self.cleaned_data.get("password2") | 35 | password2 = self.cleaned_data.get("password2") |
36 | 36 | ||
37 | if password and password2 and password != password2: | 37 | if password and password2 and password != password2: |
38 | - raise forms.ValidationError('A confirmacão da senha está incorreta') | 38 | + raise forms.ValidationError('A confirmacao da senha esta incorreta') |
39 | return password2 | 39 | return password2 |
40 | 40 | ||
41 | def save(self, commit=True): | 41 | def save(self, commit=True): |