Add min/max-limit on giftcard_expiry_years

This commit is contained in:
Richard Schreiber
2025-03-12 08:54:40 +01:00
committed by GitHub
parent e2e811ea47
commit 032be74d77

View File

@@ -3291,6 +3291,8 @@ Your {organizer} team""")) # noqa: W291
label=_('Validity of gift card codes in years'), label=_('Validity of gift card codes in years'),
help_text=_('If you set a number here, gift cards will by default expire at the end of the year after this ' help_text=_('If you set a number here, gift cards will by default expire at the end of the year after this '
'many years. If you keep it empty, gift cards do not have an explicit expiry date.'), 'many years. If you keep it empty, gift cards do not have an explicit expiry date.'),
min_value=0,
max_value=99,
) )
}, },
'cookie_consent': { 'cookie_consent': {