Allow Templated Subjects.

This commit is contained in:
Issac Kelly
2014-07-15 15:48:42 -07:00
parent 978c0665b8
commit 19c1913268
3 changed files with 8 additions and 1 deletions

View File

@ -104,7 +104,7 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
).render(context)
subject_part = loader.get_template_from_string(
"{{ ticket.ticket }} {{ ticket.title|safe }} %s" % t.subject
settings.HELPDESK_EMAIL_SUBJECT_TEMPLATE % t.subject
).render(context)
if isinstance(recipients,(str,unicode)):