mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 02:36:02 +02:00
fixed logic on save with no dnssec data records; fixed link on dns page
This commit is contained in:
parent
bdbff9260e
commit
6400fa5f4b
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@
|
||||||
{% url 'domain-dns-nameservers' pk=domain.id as url %}
|
{% url 'domain-dns-nameservers' pk=domain.id as url %}
|
||||||
<p><a href="{{ url }}">DNS name servers</a></p>
|
<p><a href="{{ url }}">DNS name servers</a></p>
|
||||||
|
|
||||||
{% url 'domain-dnssec' pk=domain.id as url %}
|
{% url 'domain-dns-dnssec' pk=domain.id as url %}
|
||||||
<p><a href="{{ url }}">DNSSEC</a></p>
|
<p><a href="{{ url }}">DNSSEC</a></p>
|
||||||
|
|
||||||
{% endblock %} {# domain_content #}
|
{% endblock %} {# domain_content #}
|
||||||
|
|
|
@ -382,7 +382,7 @@ class DomainDsDataView(DomainFormBaseView):
|
||||||
|
|
||||||
# This is called when all DNSSEC data has been deleted and the
|
# This is called when all DNSSEC data has been deleted and the
|
||||||
# Save button is pressed
|
# Save button is pressed
|
||||||
if len(formset) == 0 and formset.initial == [{}] and override == False:
|
if len(formset) == 0 and formset.initial != [{}] and override == False:
|
||||||
# trigger the modal
|
# trigger the modal
|
||||||
# get context data from super() rather than self
|
# get context data from super() rather than self
|
||||||
# to preserve the context["form"]
|
# to preserve the context["form"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue