8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00

Detection d'ajout d'un Alias et regen du service mail-server

This commit is contained in:
grisel-davy 2018-08-07 23:35:15 +02:00
parent 704b933de1
commit 61e6f4937d

View file

@ -1078,6 +1078,11 @@ def user_post_save(**kwargs):
) )
regen('mailing') 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) @receiver(m2m_changed, sender=User.groups.through)
def user_group_relation_changed(**kwargs): def user_group_relation_changed(**kwargs):