mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 08:09:37 +00:00
13 lines
340 B
Python
13 lines
340 B
Python
from project import app, celery
|
|
from project.celery import force_locale
|
|
from project.views.utils import send_mail
|
|
|
|
|
|
@celery.task(
|
|
base=getattr(app, "celery_http_task_cls"),
|
|
priority=0,
|
|
)
|
|
def send_mail_task(recipient, subject, template, **context):
|
|
with force_locale():
|
|
send_mail(recipient, subject, template, **context)
|