mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 17:17:02 +02:00
fixed nameservers path
This commit is contained in:
parent
84cc92cb0a
commit
7c8f5e77f1
4 changed files with 9 additions and 9 deletions
|
@ -27,7 +27,7 @@
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
{% url 'domain-nameservers' pk=domain.id as url %}
|
{% url 'domain-dns-nameservers' pk=domain.id as url %}
|
||||||
{% if domain.nameservers|length > 0 %}
|
{% if domain.nameservers|length > 0 %}
|
||||||
{% include "includes/summary_item.html" with title='DNS name servers' value=domain.nameservers list='true' edit_link=url %}
|
{% include "includes/summary_item.html" with title='DNS name servers' value=domain.nameservers list='true' edit_link=url %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
<p>You can enter your name services, as well as other DNS-related information, in the following sections:</p>
|
<p>You can enter your name services, as well as other DNS-related information, in the following sections:</p>
|
||||||
|
|
||||||
{% url 'domain-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-subdomains' pk=domain.id as url %}
|
{% url 'domain-subdomains' pk=domain.id as url %}
|
||||||
|
|
|
@ -1098,7 +1098,7 @@ class TestDomainPermissions(TestWithDomainPermissions):
|
||||||
"domain",
|
"domain",
|
||||||
"domain-users",
|
"domain-users",
|
||||||
"domain-users-add",
|
"domain-users-add",
|
||||||
"domain-nameservers",
|
"domain-dns-nameservers",
|
||||||
"domain-org-name-address",
|
"domain-org-name-address",
|
||||||
"domain-authorizing-official",
|
"domain-authorizing-official",
|
||||||
"domain-your-contact-information",
|
"domain-your-contact-information",
|
||||||
|
@ -1119,7 +1119,7 @@ class TestDomainPermissions(TestWithDomainPermissions):
|
||||||
"domain",
|
"domain",
|
||||||
"domain-users",
|
"domain-users",
|
||||||
"domain-users-add",
|
"domain-users-add",
|
||||||
"domain-nameservers",
|
"domain-dns-nameservers",
|
||||||
"domain-org-name-address",
|
"domain-org-name-address",
|
||||||
"domain-authorizing-official",
|
"domain-authorizing-official",
|
||||||
"domain-your-contact-information",
|
"domain-your-contact-information",
|
||||||
|
@ -1308,7 +1308,7 @@ class TestDomainDetail(TestWithDomainPermissions, WebTest):
|
||||||
def test_domain_nameservers(self):
|
def test_domain_nameservers(self):
|
||||||
"""Can load domain's nameservers page."""
|
"""Can load domain's nameservers page."""
|
||||||
page = self.client.get(
|
page = self.client.get(
|
||||||
reverse("domain-nameservers", kwargs={"pk": self.domain.id})
|
reverse("domain-dns-nameservers", kwargs={"pk": self.domain.id})
|
||||||
)
|
)
|
||||||
self.assertContains(page, "Domain name servers")
|
self.assertContains(page, "Domain name servers")
|
||||||
|
|
||||||
|
@ -1319,7 +1319,7 @@ class TestDomainDetail(TestWithDomainPermissions, WebTest):
|
||||||
Uses self.app WebTest because we need to interact with forms.
|
Uses self.app WebTest because we need to interact with forms.
|
||||||
"""
|
"""
|
||||||
nameservers_page = self.app.get(
|
nameservers_page = self.app.get(
|
||||||
reverse("domain-nameservers", kwargs={"pk": self.domain.id})
|
reverse("domain-dns-nameservers", kwargs={"pk": self.domain.id})
|
||||||
)
|
)
|
||||||
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
||||||
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
||||||
|
@ -1329,7 +1329,7 @@ class TestDomainDetail(TestWithDomainPermissions, WebTest):
|
||||||
self.assertEqual(result.status_code, 302)
|
self.assertEqual(result.status_code, 302)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
result["Location"],
|
result["Location"],
|
||||||
reverse("domain-nameservers", kwargs={"pk": self.domain.id}),
|
reverse("domain-dns-nameservers", kwargs={"pk": self.domain.id}),
|
||||||
)
|
)
|
||||||
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
||||||
page = result.follow()
|
page = result.follow()
|
||||||
|
@ -1342,7 +1342,7 @@ class TestDomainDetail(TestWithDomainPermissions, WebTest):
|
||||||
Uses self.app WebTest because we need to interact with forms.
|
Uses self.app WebTest because we need to interact with forms.
|
||||||
"""
|
"""
|
||||||
nameservers_page = self.app.get(
|
nameservers_page = self.app.get(
|
||||||
reverse("domain-nameservers", kwargs={"pk": self.domain.id})
|
reverse("domain-dns-nameservers", kwargs={"pk": self.domain.id})
|
||||||
)
|
)
|
||||||
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
||||||
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
||||||
|
|
|
@ -172,7 +172,7 @@ class DomainNameserversView(DomainPermissionView, FormMixin):
|
||||||
|
|
||||||
def get_success_url(self):
|
def get_success_url(self):
|
||||||
"""Redirect to the nameservers page for the domain."""
|
"""Redirect to the nameservers page for the domain."""
|
||||||
return reverse("domain-nameservers", kwargs={"pk": self.object.pk})
|
return reverse("domain-dns-nameservers", kwargs={"pk": self.object.pk})
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
"""Adjust context from FormMixin for formsets."""
|
"""Adjust context from FormMixin for formsets."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue