From 3e5b9e975f105fa8bae86913ff9c2a79b29666ee 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 3d146258..89486352 100644 --- a/machines/models.py +++ b/machines/models.py @@ -434,6 +434,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')