mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-09-12 01:03:09 +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