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: