Fix ticket submission

master
Alice 5 years ago
parent f5d30bf137
commit f12966a62d

@ -3,7 +3,6 @@ from django.conf import settings
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.urls import reverse from django.urls import reverse
from django.template.loader import get_template from django.template.loader import get_template
from django.template import Context
from django.core.mail import send_mail from django.core.mail import send_mail
@ -21,7 +20,7 @@ if hasattr(settings, 'TICKETS_CATEGORIES'):
def notify(subject, template, recipient_list, params): 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) text = get_template(template).render(ctx)
for a in recipient_list: for a in recipient_list:

Loading…
Cancel
Save