8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-10-05 18:42:12 +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(
label=_("Amount"),
min_value=0.01,
validators=[]
decimal_places=2,
)
payment = forms.ModelChoiceField(
queryset=Paiement.objects.none(),