From e1a37fbc35475b4375eb79ae1dcaf1aacb1fddff Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Fri, 6 Dec 2024 10:49:19 -0700 Subject: [PATCH] cleanup + test on sandbox --- src/registrar/models/domain.py | 3 - src/registrar/templates/domain_dns.html | 2 +- .../templates/prototype_domain_dns.html | 9 +- src/registrar/views/domain.py | 83 ++++++++----------- 4 files changed, 41 insertions(+), 56 deletions(-) diff --git a/src/registrar/models/domain.py b/src/registrar/models/domain.py index a96f9f6ec..cc600e1ce 100644 --- a/src/registrar/models/domain.py +++ b/src/registrar/models/domain.py @@ -1,11 +1,9 @@ from itertools import zip_longest import logging import ipaddress -import requests import re from datetime import date from typing import Optional -from django.conf import settings from django_fsm import FSMField, transition, TransitionNotAllowed # type: ignore from django.db import models @@ -239,7 +237,6 @@ class Domain(TimeStampedModel, DomainHelper): is called in the validate function on the request/domain page throws- RegistryError or InvalidDomainError""" - return True if not cls.string_could_be_domain(domain): logger.warning("Not a valid domain: %s" % str(domain)) # throw invalid domain error so that it can be caught in diff --git a/src/registrar/templates/domain_dns.html b/src/registrar/templates/domain_dns.html index cf6d2ef7c..88ecc808b 100644 --- a/src/registrar/templates/domain_dns.html +++ b/src/registrar/templates/domain_dns.html @@ -36,7 +36,7 @@ {% url 'domain-dns-dnssec' pk=domain.id as url %}
- This is a prototype that demonstrates adding an 'A' record to igorville.gov. + This is a prototype that demonstrates adding an 'A' record to a zone. Do note that this just adds records, but does not update or delete existing ones. - You can only use this on igorville.gov, domainops.gov, and dns.gov. + + On non-production environments, you can only use this on igorville.gov, domainops.gov, and dns.gov. + On production environments, you can only use this on igorville.gov. +