From af6a1acb41b939705c6e051a60c0dbabe025273f Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Thu, 16 Nov 2017 02:45:49 +0100 Subject: [PATCH] Fix regeneration service dns --- machines/models.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/machines/models.py b/machines/models.py index 76274e7f..f70ce116 100644 --- a/machines/models.py +++ b/machines/models.py @@ -996,3 +996,15 @@ def text_post_save(sender, **kwargs): def text_post_delete(sender, **kwargs): """Regeneration dns après modification d'un TX""" regen('dns') + + +@receiver(post_save, sender=Srv) +def srv_post_save(sender, **kwargs): + """Regeneration dns après modification d'un SRV""" + regen('dns') + + +@receiver(post_delete, sender=Srv) +def text_post_delete(sender, **kwargs): + """Regeneration dns après modification d'un SRV""" + regen('dns')