Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:bread-and-pepper/django-userena
Browse files Browse the repository at this point in the history
  • Loading branch information
wunki committed Aug 2, 2013
2 parents fbba277 + 7f082e3 commit 3175bfd
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 139 deletions.
4 changes: 2 additions & 2 deletions userena/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def clean_username(self):
pass
else:
if UserenaSignup.objects.filter(user__username__iexact=self.cleaned_data['username']).exclude(activation_key=userena_settings.USERENA_ACTIVATED):
raise forms.ValidationError(_('This username is already taken but not confirmed. Please check you email for verification steps.'))
raise forms.ValidationError(_('This username is already taken but not confirmed. Please check your email for verification steps.'))
raise forms.ValidationError(_('This username is already taken.'))
if self.cleaned_data['username'].lower() in userena_settings.USERENA_FORBIDDEN_USERNAMES:
raise forms.ValidationError(_('This username is not allowed.'))
Expand All @@ -63,7 +63,7 @@ def clean_email(self):
""" Validate that the e-mail address is unique. """
if get_user_model().objects.filter(email__iexact=self.cleaned_data['email']):
if UserenaSignup.objects.filter(user__email__iexact=self.cleaned_data['email']).exclude(activation_key=userena_settings.USERENA_ACTIVATED):
raise forms.ValidationError(_('This email is already in use but not confirmed. Please check you email for verification steps.'))
raise forms.ValidationError(_('This email is already in use but not confirmed. Please check your email for verification steps.'))
raise forms.ValidationError(_('This email is already in use. Please supply a different email.'))
return self.cleaned_data['email']

Expand Down
Binary file modified userena/locale/ru/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit 3175bfd

Please sign in to comment.