From 34c5af62f44ddea88e8e8353c5e3eb6685f35cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Fri, 13 Apr 2018 12:32:39 +0000 Subject: [PATCH] Fix: Error rename --- cotisations/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cotisations/views.py b/cotisations/views.py index d017a4a1..bb2540ae 100644 --- a/cotisations/views.py +++ b/cotisations/views.py @@ -719,7 +719,7 @@ def new_facture_solde(request, userid): user = request.user invoice = Facture(user=user) payment, _created = Paiement.objects.get_or_create(moyen='Solde') - facture.paiement = payment + invoice.paiement = payment # The template needs the list of articles (for the JS part) article_list = Article.objects.filter( Q(type_user='All') | Q(type_user=request.user.class_name) @@ -827,9 +827,9 @@ def recharge(request): if refill_form.is_valid(): invoice = Facture(user=request.user) payment, _created = Paiement.objects.get_or_create(moyen='Rechargement en ligne') - facture.paiement = payment - facture.valid = False - facture.save() + invoice.paiement = payment + invoice.valid = False + invoice.save() purchase = Vente.objects.create( facture=invoice, name='solde',