mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 16:03:19 +01:00
fix setting import (fixes CI error)
This commit is contained in:
parent
3bd2d67193
commit
76b9271c10
@ -54,6 +54,7 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
|
|||||||
from django.template import loader, Context
|
from django.template import loader, Context
|
||||||
|
|
||||||
from helpdesk.models import EmailTemplate
|
from helpdesk.models import EmailTemplate
|
||||||
|
from helpdesk.settings import HELPDESK_EMAIL_SUBJECT_TEMPLATE
|
||||||
import os
|
import os
|
||||||
|
|
||||||
context = Context(email_context)
|
context = Context(email_context)
|
||||||
@ -104,7 +105,7 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
|
|||||||
).render(context)
|
).render(context)
|
||||||
|
|
||||||
subject_part = loader.get_template_from_string(
|
subject_part = loader.get_template_from_string(
|
||||||
settings.HELPDESK_EMAIL_SUBJECT_TEMPLATE % {
|
HELPDESK_EMAIL_SUBJECT_TEMPLATE % {
|
||||||
"subject": t.subject,
|
"subject": t.subject,
|
||||||
}).render(context)
|
}).render(context)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user