|
|
|
@ -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:
|
|
|
|
|