mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-26 00:43:46 +00:00
Fix : création du user dans le ldap
This commit is contained in:
parent
5a9007d67a
commit
76bab0b878
1 changed files with 4 additions and 2 deletions
|
@ -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']
|
||||||
|
|
Loading…
Reference in a new issue