From 25cd61ddca01dcbac60289fd29b41b215ef373f0 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Wed, 11 Apr 2018 09:30:46 +0000 Subject: [PATCH] Fix bug sur cotisation --- cotisations/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cotisations/models.py b/cotisations/models.py index 3edc7815..83f81d5b 100644 --- a/cotisations/models.py +++ b/cotisations/models.py @@ -394,7 +394,7 @@ def vente_post_save(sender, **kwargs): LDAP user when a purchase has been saved. """ purchase = kwargs['instance'] - if hasattr(vente, 'cotisation'): + if hasattr(purchase, 'cotisation'): purchase.cotisation.vente = purchase purchase.cotisation.save() if purchase.type_cotisation: