forked from CGM_Public/pretix_original
Gift card payment: Fix public_name fallback
This commit is contained in:
@@ -1311,9 +1311,7 @@ class GiftCardPayment(BasePaymentProvider):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def public_name(self) -> str:
|
def public_name(self) -> str:
|
||||||
return str(self.settings.get("public_name", as_type=LazyI18nString)) or _(
|
return str(self.settings.get("public_name", as_type=LazyI18nString) or _("Gift card"))
|
||||||
"Gift card"
|
|
||||||
)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def settings_form_fields(self):
|
def settings_form_fields(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user