From 76b9271c10387a6843c8eeaebdee5448a6d0d506 Mon Sep 17 00:00:00 2001 From: Stefano Brentegani Date: Sun, 20 Jul 2014 16:17:39 +0200 Subject: [PATCH] fix setting import (fixes CI error) --- helpdesk/lib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpdesk/lib.py b/helpdesk/lib.py index 3188c9c0..584f2c60 100644 --- a/helpdesk/lib.py +++ b/helpdesk/lib.py @@ -54,6 +54,7 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b from django.template import loader, Context from helpdesk.models import EmailTemplate + from helpdesk.settings import HELPDESK_EMAIL_SUBJECT_TEMPLATE import os context = Context(email_context) @@ -104,7 +105,7 @@ 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 % { + HELPDESK_EMAIL_SUBJECT_TEMPLATE % { "subject": t.subject, }).render(context)