8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-30 08:32:26 +00:00

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

This commit is contained in:
Gabriel Detraz 2019-07-07 15:17:53 +02:00 committed by grizzly
parent b8ab569a38
commit e60196db9b

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(),