mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Refs #44 -- Added background queue support for file export
This commit is contained in:
@@ -82,7 +82,7 @@ def mail_send(to, subject, body, sender):
|
||||
return False
|
||||
|
||||
|
||||
if settings.HAS_CELERY:
|
||||
if settings.HAS_CELERY and settings.EMAIL_BACKEND != 'django.core.mail.outbox':
|
||||
from pretix.celery import app
|
||||
|
||||
mail_send_task = app.task(mail_send)
|
||||
|
||||
Reference in New Issue
Block a user