code format

This commit is contained in:
Felix Rindt
2020-07-24 16:40:16 +02:00
parent b168516d78
commit 413cbec4b9
3 changed files with 4 additions and 3 deletions

View File

@@ -47,6 +47,7 @@ gunicorn
guid
hardcoded
hostname
ics
idempotency
iframe
incrementing

View File

@@ -36,7 +36,7 @@ Signature
Bcc address
This email address will receive a copy of every event-related email.
Attach calender files
Attach calendar files
With this option, every order confirmation mail will include an ics file with name, date and location of
your event. It can be imported into many digital calendars.

View File

@@ -1,5 +1,3 @@
from urllib.parse import urlencode, urlparse
from django import forms
from django.conf import settings
from django.core.exceptions import ValidationError
@@ -17,6 +15,7 @@ from i18nfield.forms import (
I18nForm, I18nFormField, I18nFormSetMixin, I18nTextarea, I18nTextInput,
)
from pytz import common_timezones, timezone
from urllib.parse import urlencode, urlparse
from pretix.base.channels import get_all_sales_channels
from pretix.base.email import get_available_placeholders
@@ -754,6 +753,7 @@ def contains_web_channel_validate(val):
if "web" not in val:
raise ValidationError(_("The web channel must be selected to receive these emails."))
class MailSettingsForm(SettingsForm):
auto_fields = [
'mail_prefix',