From 073df0b03e4316cf8e50a75cc2c570cebd739469 Mon Sep 17 00:00:00 2001 From: Issac Kelly Date: Tue, 15 Jul 2014 16:04:19 -0700 Subject: [PATCH] Continuation --- helpdesk/lib.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helpdesk/lib.py b/helpdesk/lib.py index 0b66da41..3188c9c0 100644 --- a/helpdesk/lib.py +++ b/helpdesk/lib.py @@ -104,8 +104,9 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b ).render(context) subject_part = loader.get_template_from_string( - settings.HELPDESK_EMAIL_SUBJECT_TEMPLATE % t.subject - ).render(context) + settings.HELPDESK_EMAIL_SUBJECT_TEMPLATE % { + "subject": t.subject, + }).render(context) if isinstance(recipients,(str,unicode)): if recipients.find(','):