From f28705daff7e3d83ebf540b72aa05aff981544ca Mon Sep 17 00:00:00 2001 From: CocoByte Date: Mon, 4 Mar 2024 19:31:25 -0700 Subject: [PATCH] another fix... --- src/registrar/models/domain_request.py | 2 +- src/registrar/tests/test_admin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/registrar/models/domain_request.py b/src/registrar/models/domain_request.py index 5283ce0e3..417713197 100644 --- a/src/registrar/models/domain_request.py +++ b/src/registrar/models/domain_request.py @@ -907,7 +907,7 @@ class DomainRequest(TimeStampedModel): def has_rationale(self) -> bool: """Does this domain request have no_other_contacts_rationale?""" return bool(self.no_other_contacts_rationale) -1 + def has_other_contacts(self) -> bool: """Does this domain request have other contacts listed?""" return self.other_contacts.exists() diff --git a/src/registrar/tests/test_admin.py b/src/registrar/tests/test_admin.py index c0fb210c0..fb5c566c2 100644 --- a/src/registrar/tests/test_admin.py +++ b/src/registrar/tests/test_admin.py @@ -585,7 +585,7 @@ class TestDomainRequestAdmin(MockEppLib): with less_console_noise(): self.client.force_login(self.superuser) completed_domain_request() - response = self.client.get("/admin/registrar/DomainRequest/") + response = self.client.get("/admin/registrar/domainrequest/") # There are 4 template references to Federal (4) plus two references in the table # for our actual domain request self.assertContains(response, "Federal", count=6)