8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-09 03:16:25 +00:00

Fix : création du user dans le ldap

This commit is contained in:
Maël Kervella 2017-10-26 22:37:16 +00:00
parent c7fa36efba
commit be6a06ea81

View file

@ -750,7 +750,8 @@ class Club(User):
pass pass
@receiver(post_save, sender=User) @receiver(post_save, sender=Adherent)
@receiver(post_save, sender=Club)
def user_post_save(sender, **kwargs): def user_post_save(sender, **kwargs):
""" Synchronisation post_save : envoie le mail de bienvenue si creation """ Synchronisation post_save : envoie le mail de bienvenue si creation
Synchronise le ldap""" Synchronise le ldap"""
@ -762,7 +763,8 @@ def user_post_save(sender, **kwargs):
regen('mailing') regen('mailing')
@receiver(post_delete, sender=User) @receiver(post_delete, sender=Adherent)
@receiver(post_delete, sender=Club)
def user_post_delete(sender, **kwargs): def user_post_delete(sender, **kwargs):
"""Post delete d'un user, on supprime son instance ldap""" """Post delete d'un user, on supprime son instance ldap"""
user = kwargs['instance'] user = kwargs['instance']