From 8ea85f88ce6dbe6861059642915d1dbf1e440a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Fri, 22 Jun 2018 21:41:15 +0000 Subject: [PATCH] Fix #136 : Reactivate the welcome mail --- users/models.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/users/models.py b/users/models.py index 1e27e0f2..d0e21997 100644 --- a/users/models.py +++ b/users/models.py @@ -1005,11 +1005,10 @@ class Club(User): def user_post_save(**kwargs): """ Synchronisation post_save : envoie le mail de bienvenue si creation Synchronise le ldap""" - # is_created = kwargs['created'] + is_created = kwargs['created'] user = kwargs['instance'] - # TODO : remove if unnecessary - # if is_created: - # user.notif_inscription() + if is_created: + user.notif_inscription() user.ldap_sync( base=True, access_refresh=True,