From 1f56a46918efce8f26c06a41b8bcb32f65f69bad Mon Sep 17 00:00:00 2001 From: Phin Wolkwitz Date: Thu, 6 Aug 2026 16:15:37 +0200 Subject: [PATCH] [wip] revert changes to orders.py --- src/pretix/base/models/orders.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/pretix/base/models/orders.py b/src/pretix/base/models/orders.py index ceea5dd10c..01844c82f8 100644 --- a/src/pretix/base/models/orders.py +++ b/src/pretix/base/models/orders.py @@ -2912,8 +2912,7 @@ class OrderPosition(AbstractPosition): def send_mail(self, subject: str, template: Union[str, LazyI18nString], context: Dict[str, Any]=None, log_entry_type: str='pretix.event.order.email.sent', user: User=None, headers: dict=None, sender: str=None, invoices: list=None, - auth=None, attach_tickets=False, attach_ical=False, attach_other_files: list = None, - diff_recipient=None): + auth=None, attach_tickets=False, attach_ical=False, attach_other_files: list=None): """ Sends an email to the attendee. Basically, this method does two things: @@ -2931,15 +2930,14 @@ class OrderPosition(AbstractPosition): :param sender: Custom email sender. :param attach_tickets: Attach tickets of this order, if they are existing and ready to download :param attach_ical: Attach relevant ICS files - :param diff_recipient: A different recipient in case of unpersonalized add-ons. """ from pretix.base.services.mail import mail - if not self.attendee_email and not self.diff_recipient: + if not self.attendee_email: return with language(self.order.locale, self.order.event.settings.region): - recipient = self.attendee_email if self.attendee_email else self.diff_recipient + recipient = self.attendee_email outgoing_mail = mail( recipient, subject, template, context, self.event, self.order.locale, order=self.order, headers=headers, sender=sender,