Continuation

This commit is contained in:
Issac Kelly 2014-07-15 16:04:19 -07:00
parent 19c1913268
commit 073df0b03e

View File

@ -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(','):