From e60196db9b83d428e6b8a1825088397ad54d94c1 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Sun, 7 Jul 2019 15:17:53 +0200 Subject: [PATCH] Fix : Evite le plantage si le montant vaut exactement le minimum --- cotisations/forms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cotisations/forms.py b/cotisations/forms.py index 3f99382b..39c194ec 100644 --- a/cotisations/forms.py +++ b/cotisations/forms.py @@ -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(),