From b5b0cbc9a6604f5410da34c1631e521365339e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Fri, 8 Sep 2017 23:07:28 +0000 Subject: [PATCH] Recharge le dns quand on modifie les extensions --- machines/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/machines/models.py b/machines/models.py index 1053dd8c..d5278b2d 100644 --- a/machines/models.py +++ b/machines/models.py @@ -426,6 +426,14 @@ def domain_post_save(sender, **kwargs): def domain_post_delete(sender, **kwargs): 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) def mx_post_save(sender, **kwargs): regen('dns')