mirror of
https://github.com/pretix/pretix.git
synced 2026-09-14 16:24:43 +00:00
Limit maximum value of transaction at gift card creation (PRETIXEU-870)
This commit is contained in:
@@ -578,7 +578,8 @@ class WebHookForm(forms.ModelForm):
|
|||||||
class GiftCardCreateForm(forms.ModelForm):
|
class GiftCardCreateForm(forms.ModelForm):
|
||||||
value = forms.DecimalField(
|
value = forms.DecimalField(
|
||||||
label=_('Gift card value'),
|
label=_('Gift card value'),
|
||||||
min_value=Decimal('0.00')
|
min_value=Decimal('0.00'),
|
||||||
|
max_value=Decimal('99999999.99'),
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user