Commit be6a06ea authored by Maël Kervella's avatar Maël Kervella
Browse files

Fix : création du user dans le ldap

parent c7fa36ef
......@@ -750,7 +750,8 @@ class Club(User):
@receiver(post_save, sender=User)
@receiver(post_save, sender=Adherent)
@receiver(post_save, sender=Club)
def user_post_save(sender, **kwargs):
""" Synchronisation post_save : envoie le mail de bienvenue si creation
Synchronise le ldap"""
......@@ -762,7 +763,8 @@ def user_post_save(sender, **kwargs):
@receiver(post_delete, sender=User)
@receiver(post_delete, sender=Adherent)
@receiver(post_delete, sender=Club)
def user_post_delete(sender, **kwargs):
"""Post delete d'un user, on supprime son instance ldap"""
user = kwargs['instance']
Supports Markdown
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