Pass request when manually editing gift cards

This commit is contained in:
Raphael Michel
2020-11-18 17:22:24 +01:00
parent 023f9eb6e7
commit f51ec04e05

View File

@@ -1057,7 +1057,7 @@ class GiftCardDetailView(OrganizerDetailViewMixin, OrganizerPermissionRequiredMi
}) })
) )
try: try:
r.payment_provider.execute_payment(None, r) r.payment_provider.execute_payment(request, r)
except PaymentException as e: except PaymentException as e:
with transaction.atomic(): with transaction.atomic():
r.state = OrderPayment.PAYMENT_STATE_FAILED r.state = OrderPayment.PAYMENT_STATE_FAILED