diff --git a/doc/spelling_wordlist.txt b/doc/spelling_wordlist.txt index ba0b0918d7..67f0f50b03 100644 --- a/doc/spelling_wordlist.txt +++ b/doc/spelling_wordlist.txt @@ -47,6 +47,7 @@ gunicorn guid hardcoded hostname +ics idempotency iframe incrementing diff --git a/doc/user/events/email.rst b/doc/user/events/email.rst index b20bbc328d..01225a1121 100644 --- a/doc/user/events/email.rst +++ b/doc/user/events/email.rst @@ -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. diff --git a/src/pretix/control/forms/event.py b/src/pretix/control/forms/event.py index d28c06285a..fecbb526eb 100644 --- a/src/pretix/control/forms/event.py +++ b/src/pretix/control/forms/event.py @@ -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',