From 9d2ff00dc8e9e0d0c225d4aa618404e18b3a930f Mon Sep 17 00:00:00 2001 From: Gustavo Bernardo Date: Tue, 15 Nov 2016 15:56:30 -0300 Subject: [PATCH] Fixed validation error message in core/forms.py [Issue:#398] --- core/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/forms.py b/core/forms.py index 8657007..454bee7 100644 --- a/core/forms.py +++ b/core/forms.py @@ -37,7 +37,7 @@ class RegisterUserForm(forms.ModelForm): def clean_cpf(self): cpf = self.cleaned_data['cpf'] if User.objects.filter(cpf = cpf).exists(): - raise forms.ValidationError(_('There is already a registeres User with this CPF')) + raise forms.ValidationError(_('There is already a registered User with this CPF')) # if not self.validate_cpf(cpf): # raise forms.ValidationError(_('Please enter a valid CPF')) return cpf @@ -76,4 +76,4 @@ class RegisterUserForm(forms.ModelForm): model = User # exclude = ['is_staff', 'is_active'] fields = ['username', 'name', 'email', 'city', 'state', 'gender', 'cpf', 'birth_date', 'phone', 'image', 'titration', - 'year_titration', 'institution', 'curriculum',] \ No newline at end of file + 'year_titration', 'institution', 'curriculum',] -- libgit2 0.21.2