mirror of https://github.com/django/django.git
mail sending used Template.render, but passed only a dictionary, not a Context object
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
f0fbd43a57
commit
798e6d5663
|
@ -41,7 +41,7 @@ class PasswordResetForm(formfields.Manipulator):
|
|||
'site_name': site_name,
|
||||
'user': self.user_cache,
|
||||
}
|
||||
send_mail('Password reset on %s' % site_name, t.render(c), None, [self.user_cache.email])
|
||||
send_mail('Password reset on %s' % site_name, t.render(Context(c)), None, [self.user_cache.email])
|
||||
|
||||
class PasswordChangeForm(formfields.Manipulator):
|
||||
"A form that lets a user change his password."
|
||||
|
|
Loading…
Reference in New Issue