8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 14:42:25 +00:00

Merge branch 'fix_note' into 'dev'

Fix : Evite le plantage si le montant vaut exactement le minimum

See merge request federez/re2o!421
This commit is contained in:
grizzly 2019-07-13 11:51:36 +02:00
commit 3d7ad99d61

View file

@ -284,8 +284,7 @@ class RechargeForm(FormRevMixin, Form):
""" """
value = forms.DecimalField( value = forms.DecimalField(
label=_("Amount"), label=_("Amount"),
min_value=0.01, decimal_places=2,
validators=[]
) )
payment = forms.ModelChoiceField( payment = forms.ModelChoiceField(
queryset=Paiement.objects.none(), queryset=Paiement.objects.none(),