mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Gift card payment: Fix public_name fallback
This commit is contained in:
@@ -1311,9 +1311,7 @@ class GiftCardPayment(BasePaymentProvider):
|
||||
|
||||
@property
|
||||
def public_name(self) -> str:
|
||||
return str(self.settings.get("public_name", as_type=LazyI18nString)) or _(
|
||||
"Gift card"
|
||||
)
|
||||
return str(self.settings.get("public_name", as_type=LazyI18nString) or _("Gift card"))
|
||||
|
||||
@property
|
||||
def settings_form_fields(self):
|
||||
|
||||
Reference in New Issue
Block a user