From 798e6d5663e6505350bf32e1eca52b1428029c6c Mon Sep 17 00:00:00 2001 From: Georg Bauer Date: Thu, 24 Nov 2005 23:10:24 +0000 Subject: [PATCH] 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 --- django/views/registration/passwords.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/views/registration/passwords.py b/django/views/registration/passwords.py index 09d3037560..0dde5f7b6d 100644 --- a/django/views/registration/passwords.py +++ b/django/views/registration/passwords.py @@ -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."