Maintenance électrique le 12 août, nos services, et y compris Gitlab, seront fortement impactés autour de cette date. Retour à un état normal prévu dans le milieu de la semaine prochaine.

Commit 809f55e0 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by root

Regeneration du dns quand modification des reglages de zone

parent a8d009c0
......@@ -406,6 +406,30 @@ def machine_post_save(sender, **kwargs):
def domain_post_save(sender, **kwargs):
regen('dns')
@receiver(post_save, sender=Domain)
def domain_post_save(sender, **kwargs):
@receiver(post_delete, sender=Domain)
def domain_post_delete(sender, **kwargs):
regen('dns')
@receiver(post_save, sender=Mx)
def mx_post_save(sender, **kwargs):
regen('dns')
@receiver(post_delete, sender=Mx)
def mx_post_delete(sender, **kwargs):
regen('dns')
@receiver(post_save, sender=Ns)
def ns_post_save(sender, **kwargs):
regen('dns')
@receiver(post_delete, sender=Ns)
def ns_post_delete(sender, **kwargs):
regen('dns')
@receiver(post_save, sender=Text)
def text_post_save(sender, **kwargs):
regen('dns')
@receiver(post_delete, sender=Text)
def text_post_delete(sender, **kwargs):
regen('dns')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment