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:
Georg Bauer 2005-11-24 23:10:24 +00:00
parent f0fbd43a57
commit 798e6d5663
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class PasswordResetForm(formfields.Manipulator):
'site_name': site_name, 'site_name': site_name,
'user': self.user_cache, '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): class PasswordChangeForm(formfields.Manipulator):
"A form that lets a user change his password." "A form that lets a user change his password."