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,