From 40a64a1e868ef61dcce9745b756527ac14b15ceb Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:51:10 -0600 Subject: [PATCH] Fix typo causing test fail --- src/registrar/management/commands/populate_organization_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registrar/management/commands/populate_organization_type.py b/src/registrar/management/commands/populate_organization_type.py index cfa44d0a5..cef8e9433 100644 --- a/src/registrar/management/commands/populate_organization_type.py +++ b/src/registrar/management/commands/populate_organization_type.py @@ -121,7 +121,7 @@ class Command(BaseCommand): if request.requested_domain is not None and request.requested_domain.name is not None: domain_name = request.requested_domain.name - request_is_approved = request.state == DomainRequest.DomainRequestStatus.APPROVED + request_is_approved = request.status == DomainRequest.DomainRequestStatus.APPROVED if request_is_approved and domain_name is not None: request.is_election_board = domain_name in self.domains_with_election_boards_set