Browse Source

Fix bug sur cotisation

Fix_strange_foreign_key_state
Gabriel Detraz 8 years ago
committed by Maël Kervella
parent
commit
25cd61ddca
  1. 2
      cotisations/models.py

2
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:

Loading…
Cancel
Save