mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 15:12:25 +00:00
Regeneration du dns quand modification des reglages de zone
This commit is contained in:
parent
a8d009c035
commit
809f55e011
1 changed files with 26 additions and 2 deletions
|
@ -406,6 +406,30 @@ def machine_post_save(sender, **kwargs):
|
||||||
def domain_post_save(sender, **kwargs):
|
def domain_post_save(sender, **kwargs):
|
||||||
regen('dns')
|
regen('dns')
|
||||||
|
|
||||||
@receiver(post_save, sender=Domain)
|
@receiver(post_delete, sender=Domain)
|
||||||
def domain_post_save(sender, **kwargs):
|
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')
|
regen('dns')
|
||||||
|
|
Loading…
Reference in a new issue