forked from CGM_Public/pretix_original
Fixed import structure because testing was broken
This commit is contained in:
@@ -9,4 +9,9 @@ class PretixBaseConfig(AppConfig):
|
||||
from . import exporter # NOQA
|
||||
from . import payment # NOQA
|
||||
|
||||
try:
|
||||
from .celery import app as celery_app # NOQA
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
default_app_config = 'pretix.base.PretixBaseConfig'
|
||||
|
||||
@@ -72,10 +72,7 @@ def mail(user: User, subject: str, template: str, context: dict=None, event: Eve
|
||||
|
||||
|
||||
def mail_send(to, subject, body, sender):
|
||||
email = EmailMessage(
|
||||
subject, body, sender,
|
||||
to=to
|
||||
)
|
||||
email = EmailMessage(subject, body, sender, to=to)
|
||||
|
||||
try:
|
||||
email.send(fail_silently=False)
|
||||
|
||||
Reference in New Issue
Block a user