From 28a6cb352ccb3194289f9e70528f706db1c80583 Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 18 Jul 2012 14:10:43 +0200 Subject: [PATCH] fix recipient --- postman/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postman/utils.py b/postman/utils.py index 9359bc5..18a2877 100644 --- a/postman/utils.py +++ b/postman/utils.py @@ -64,7 +64,7 @@ def format_subject(subject): def email(subject_template, message_template, recipient_list, object, action=None): """Compose and send an email.""" site = Site.objects.get_current() - ctx_dict = {'site': site, 'object': object, 'action': action, 'usr': object.sender} + ctx_dict = {'site': site, 'object': object, 'action': action, 'usr': object.recipient} subject = render_to_string(subject_template, ctx_dict) # Email subject *must not* contain newlines subject = ''.join(subject.splitlines()) -- 2.39.5