From cac9a39ae2025b72fd86453a61d427f5c88894db Mon Sep 17 00:00:00 2001 From: Mira Weller Date: Tue, 29 Oct 2024 18:56:52 +0100 Subject: [PATCH] formatting --- src/pretix/control/views/orders.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/pretix/control/views/orders.py b/src/pretix/control/views/orders.py index 2a88c5ca8..d492ea078 100644 --- a/src/pretix/control/views/orders.py +++ b/src/pretix/control/views/orders.py @@ -122,10 +122,11 @@ from pretix.control.forms.filter import ( ) from pretix.control.forms.orders import ( CancelForm, CommentForm, DenyForm, EventCancelForm, ExporterForm, - ExtendForm, MarkPaidForm, OrderContactForm, OrderFeeChangeForm, - OrderLocaleForm, OrderMailForm, OrderPositionAddForm, - OrderPositionAddFormset, OrderPositionChangeForm, OrderPositionMailForm, - OrderRefundForm, OtherOperationsForm, ReactivateOrderForm, OrderFeeAddForm, OrderFeeAddFormset, + ExtendForm, MarkPaidForm, OrderContactForm, OrderFeeAddForm, + OrderFeeAddFormset, OrderFeeChangeForm, OrderLocaleForm, OrderMailForm, + OrderPositionAddForm, OrderPositionAddFormset, OrderPositionChangeForm, + OrderPositionMailForm, OrderRefundForm, OtherOperationsForm, + ReactivateOrderForm, ) from pretix.control.forms.rrule import RRuleForm from pretix.control.permissions import EventPermissionRequiredMixin @@ -2097,7 +2098,11 @@ class OrderChange(OrderView): notify=notify, reissue_invoice=self.other_form.cleaned_data['reissue_invoice'] if self.other_form.is_valid() else True ) - form_valid = self._process_add_positions(ocm) and self._process_add_fees(ocm) and self._process_fees(ocm) and self._process_change(ocm) and self._process_other(ocm) + form_valid = (self._process_add_positions(ocm) and + self._process_add_fees(ocm) and + self._process_fees(ocm) and + self._process_change(ocm) and + self._process_other(ocm)) if not form_valid: messages.error(self.request, _('An error occurred. Please see the details below.'))