From f12966a62da35cd2f8c1bfb2e2eb193fac0a794d Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 26 Aug 2019 19:21:21 +0200 Subject: [PATCH] Fix ticket submission --- tickets/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tickets/models.py b/tickets/models.py index 72f8a08..2cdb03b 100644 --- a/tickets/models.py +++ b/tickets/models.py @@ -3,7 +3,6 @@ from django.conf import settings from django.utils.translation import ugettext_lazy as _ from django.urls import reverse from django.template.loader import get_template -from django.template import Context from django.core.mail import send_mail @@ -21,7 +20,7 @@ if hasattr(settings, 'TICKETS_CATEGORIES'): def notify(subject, template, recipient_list, params): - ctx = Context(dict(site_name=SITE_NAME, **params)) + ctx = dict(site_name=SITE_NAME, **params) text = get_template(template).render(ctx) for a in recipient_list: