Make all email subjects configurable (#2884)

Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
Raphael Michel
2022-11-07 15:50:09 +01:00
committed by GitHub
parent 2287c8b34c
commit 9bea383ff0
50 changed files with 775 additions and 525 deletions

View File

@@ -311,7 +311,7 @@ class ResetPasswordView(FormView):
'presale:organizer.customer.recoverpw') + '?id=' + customer.identifier + '&token=' + token
mail(
customer.email,
_('Set a new password for your account at {organizer}').format(organizer=self.request.organizer.name),
self.request.organizer.settings.mail_subject_customer_reset,
self.request.organizer.settings.mail_text_customer_reset,
ctx,
locale=customer.locale,
@@ -504,7 +504,7 @@ class ChangeInformationView(CustomerRequiredMixin, FormView):
}, salt='pretix.presale.views.customer.ChangeInformationView')
mail(
new_email,
_('Confirm email address for your account at {organizer}').format(organizer=self.request.organizer.name),
self.request.organizer.settings.mail_subject_customer_email_change,
self.request.organizer.settings.mail_text_customer_email_change,
ctx,
locale=form.instance.locale,

View File

@@ -80,7 +80,7 @@ class ResendLinkView(EventViewMixin, TemplateView):
if not orders:
user = INVALID_ADDRESS
subject = _('Your orders for {}').format(self.request.event)
subject = self.request.event.settings.mail_subject_resend_all_links
template = self.request.event.settings.mail_text_resend_all_links
context = get_email_context(event=self.request.event, orders=orders)
try: