Commit 25cd61dd authored by Gabriel Detraz's avatar Gabriel Detraz Committed by Maël Kervella

Fix bug sur cotisation

parent e80c50ff
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment