Fixes #2915 -- Fixed typo in validation error message. Thanks, Matt Riggott.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3908 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4e99600d65
commit
c3c090ab13
|
@ -81,7 +81,7 @@ class PasswordResetForm(forms.Manipulator):
|
||||||
try:
|
try:
|
||||||
self.user_cache = User.objects.get(email__iexact=new_data)
|
self.user_cache = User.objects.get(email__iexact=new_data)
|
||||||
except User.DoesNotExist:
|
except User.DoesNotExist:
|
||||||
raise validators.ValidationError, _("That e-mail address doesn't have an associated user acount. Are you sure you've registered?")
|
raise validators.ValidationError, _("That e-mail address doesn't have an associated user account. Are you sure you've registered?")
|
||||||
|
|
||||||
def save(self, domain_override=None, email_template_name='registration/password_reset_email.html'):
|
def save(self, domain_override=None, email_template_name='registration/password_reset_email.html'):
|
||||||
"Calculates a new password randomly and sends it to the user"
|
"Calculates a new password randomly and sends it to the user"
|
||||||
|
|
Loading…
Reference in New Issue