From 61e6f4937dcac792383bfe404fc7e87bf85b9e72 Mon Sep 17 00:00:00 2001 From: grisel-davy Date: Tue, 7 Aug 2018 23:35:15 +0200 Subject: [PATCH] Detection d'ajout d'un Alias et regen du service mail-server --- users/models.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/users/models.py b/users/models.py index bdc37142..27a9098a 100755 --- a/users/models.py +++ b/users/models.py @@ -1078,6 +1078,11 @@ def user_post_save(**kwargs): ) regen('mailing') +@reciever(post_save, sender=EmailAddress) +def EmailAddress_post_save(): + """set the mail-server service to be regenerated""" + regen('mail-server') + @receiver(m2m_changed, sender=User.groups.through) def user_group_relation_changed(**kwargs):