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
b3b8e1eb35
2 changed files with 28 additions and 4 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')
|
||||||
|
|
|
@ -49,8 +49,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
{% include "machines/aff_ns.html" with ns_list=ns_list %}
|
{% include "machines/aff_ns.html" with ns_list=ns_list %}
|
||||||
<h2>Liste des enregistrements Text</h2>
|
<h2>Liste des enregistrements Text</h2>
|
||||||
{% if is_infra %}
|
{% if is_infra %}
|
||||||
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-text' %}"><i class="glyphicon glyphicon-plus"></i> Ajouter un enregistrement MX</a>
|
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-text' %}"><i class="glyphicon glyphicon-plus"></i> Ajouter un enregistrement TXT</a>
|
||||||
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-text' %}"><i class="glyphicon glyphicon-trash"></i> Supprimer un enregistrement MX</a>
|
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-text' %}"><i class="glyphicon glyphicon-trash"></i> Supprimer un enregistrement TXT</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include "machines/aff_text.html" with text_list=text_list %}
|
{% include "machines/aff_text.html" with text_list=text_list %}
|
||||||
<br />
|
<br />
|
||||||
|
|
Loading…
Reference in a new issue