8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 06:32:26 +00:00

Recharge le dns quand on modifie les extensions

This commit is contained in:
Maël Kervella 2017-09-08 23:07:28 +00:00 committed by Pierre Cadart
parent b40bc9708c
commit b5b0cbc9a6

View file

@ -426,6 +426,14 @@ def domain_post_save(sender, **kwargs):
def domain_post_delete(sender, **kwargs): def domain_post_delete(sender, **kwargs):
regen('dns') regen('dns')
@receiver(post_save, sender=Extension)
def extension_post_save(sender, **kwargs):
regen('dns')
@receiver(post_delete, sender=Extension)
def extension_post_selete(sender, **kwargs):
regen('dns')
@receiver(post_save, sender=Mx) @receiver(post_save, sender=Mx)
def mx_post_save(sender, **kwargs): def mx_post_save(sender, **kwargs):
regen('dns') regen('dns')