From 4b493112ed39b7033c744781b0a7f1076104b10a Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Mon, 2 Oct 2023 12:50:04 -0600 Subject: [PATCH] Linter fixes --- src/registrar/models/domain.py | 3 --- src/registrar/tests/test_views.py | 1 - 2 files changed, 4 deletions(-) diff --git a/src/registrar/models/domain.py b/src/registrar/models/domain.py index 76622624d..d187048a7 100644 --- a/src/registrar/models/domain.py +++ b/src/registrar/models/domain.py @@ -1210,8 +1210,6 @@ class Domain(TimeStampedModel, DomainHelper): and isinstance(cleaned["_contacts"], list) and len(cleaned["_contacts"]) > 0 ): - #cleaned["contacts"] = self._fetch_contacts(cleaned["_contacts"]) - choices = PublicContact.ContactTypeChoices # We expect that all these fields get populated, # so we can create these early, rather than waiting. @@ -1231,7 +1229,6 @@ class Domain(TimeStampedModel, DomainHelper): # Find/create it in the DB in_db = self._get_or_create_public_contact(mapped_object) - cleaned["contacts"][in_db.contact_type] = in_db.registry_id # We're only getting contacts, so retain the old diff --git a/src/registrar/tests/test_views.py b/src/registrar/tests/test_views.py index 98319d141..a909be1f1 100644 --- a/src/registrar/tests/test_views.py +++ b/src/registrar/tests/test_views.py @@ -25,7 +25,6 @@ from registrar.models import ( from registrar.views.application import ApplicationWizard, Step from .common import less_console_noise -from .common import MockEppLib class TestViews(TestCase):