mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
Merge branch 'main' into nmb/nameservers
This commit is contained in:
commit
ff21b19c63
29 changed files with 466 additions and 124 deletions
|
@ -9,7 +9,6 @@ from django.db import models
|
|||
from django_fsm import FSMField, transition # type: ignore
|
||||
|
||||
from api.views import in_domains
|
||||
from epp.mock_epp import domain_info, domain_check
|
||||
from registrar.utility import errors
|
||||
|
||||
from .utility.time_stamped_model import TimeStampedModel
|
||||
|
@ -131,7 +130,7 @@ class Domain(TimeStampedModel):
|
|||
"""Check if a domain is available.
|
||||
|
||||
Not implemented. Returns a dummy value for testing."""
|
||||
return domain_check(domain)
|
||||
return False # domain_check(domain)
|
||||
|
||||
def transfer(self):
|
||||
"""Going somewhere. Not implemented."""
|
||||
|
@ -148,7 +147,7 @@ class Domain(TimeStampedModel):
|
|||
if not hasattr(self, "info"):
|
||||
try:
|
||||
# get info from registry
|
||||
self.info = domain_info(self.name)
|
||||
self.info = {} # domain_info(self.name)
|
||||
except Exception as e:
|
||||
logger.error(e)
|
||||
# TODO: back off error handling
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue