Browse files

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
  • Loading branch information...
1 parent f0fbd43 commit 798e6d5663e6505350bf32e1eca52b1428029c6c Georg Bauer committed Nov 24, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/views/registration/passwords.py
View
2 django/views/registration/passwords.py
@@ -41,7 +41,7 @@ def save(self, domain_override=None):
'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."

0 comments on commit 798e6d5

Please sign in to comment.