Gift card payment: Clean-up some code (#5574)

* Remove apparently unused code

* Move templates that do not belong in pretixcontrol
This commit is contained in:
Raphael Michel
2025-11-03 17:38:56 +01:00
committed by GitHub
parent 41780add40
commit b02e1a1515
4 changed files with 2 additions and 30 deletions

View File

@@ -1377,7 +1377,7 @@ class GiftCardPayment(BasePaymentProvider):
execute_payment_needs_user = False
verbose_name = _("Gift card")
payment_form_class = GiftCardPaymentForm
payment_form_template_name = 'pretixcontrol/giftcards/checkout.html'
payment_form_template_name = 'pretixpresale/giftcard/checkout.html'
@cached_property
def customer_gift_cards(self):
@@ -1504,7 +1504,7 @@ class GiftCardPayment(BasePaymentProvider):
return super().order_change_allowed(order) and self.event.organizer.has_gift_cards
def checkout_confirm_render(self, request, order=None, info_data=None) -> str:
return get_template('pretixcontrol/giftcards/checkout_confirm.html').render({
return get_template('pretixpresale/giftcard/checkout_confirm.html').render({
'info_data': info_data,
})