LIL-503 Грамоты для учеников

remotes/origin/hotfix/LIL-691
gzbender 7 years ago
parent 5c0c21067b
commit 21ee9a0f60
  1. 4
      apps/notification/utils.py

@ -7,9 +7,9 @@ from project.celery import app
@app.task
def send_email(subject, to_email, template_name, **kwargs):
def send_email(subject, to_email, template_name, attachments=[], **kwargs):
html = get_template(template_name).render(kwargs)
email = EmailMessage(subject, html, to=[to_email])
email = EmailMessage(subject, html, to=[to_email], attachments=attachments)
email.content_subtype = 'html'
email.send()

Loading…
Cancel
Save