From fb9784960994b534272ab98dd883d304d0c43f4f Mon Sep 17 00:00:00 2001 From: Jean-Roman Garnier Date: Sat, 15 Feb 2020 12:30:37 +0000 Subject: [PATCH] Fix cheque cotisations being saved twice --- cotisations/payment_methods/cheque/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cotisations/payment_methods/cheque/views.py b/cotisations/payment_methods/cheque/views.py index a22e9c09..89861b9a 100644 --- a/cotisations/payment_methods/cheque/views.py +++ b/cotisations/payment_methods/cheque/views.py @@ -47,7 +47,7 @@ def cheque(request, invoice_pk): form = InvoiceForm(request.POST or None, instance=invoice) if form.is_valid(): form.instance.valid = True - form.save() + # For is saved in call to end_payment return form.instance.paiement.end_payment( form.instance, request, use_payment_method=False )