mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Fix : création du user dans le ldap
This commit is contained in:
parent
c7fa36efba
commit
be6a06ea81
1 changed files with 4 additions and 2 deletions
|
@ -750,7 +750,8 @@ class Club(User):
|
|||
pass
|
||||
|
||||
|
||||
@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):
|
|||
regen('mailing')
|
||||
|
||||
|
||||
@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']
|
||||
|
|
Loading…
Reference in a new issue