fixed logic on save with no dnssec data records; fixed link on dns page

This commit is contained in:
David Kennedy 2023-10-23 20:58:09 -04:00
parent bdbff9260e
commit 6400fa5f4b
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@
{% url 'domain-dns-nameservers' pk=domain.id as url %}
<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>
{% endblock %} {# domain_content #}

View file

@ -382,7 +382,7 @@ class DomainDsDataView(DomainFormBaseView):
# This is called when all DNSSEC data has been deleted and the
# 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
# get context data from super() rather than self
# to preserve the context["form"]