This commit is contained in:
zandercymatics 2024-04-08 13:20:05 -06:00
parent 673a858bc3
commit c26618bff1
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -41,6 +41,7 @@ class CreateOrUpdateOrganizationTypeHelper:
"""
A helper that manages the "organization_type" field in DomainRequest and DomainInformation
"""
def __init__(self, sender, instance, generic_org_to_org_map, election_org_to_generic_org_map):
# The "model type"
self.sender = sender
@ -162,7 +163,9 @@ class CreateOrUpdateOrganizationTypeHelper:
else:
# This can only happen with manual data tinkering, which causes these to be out of sync.
if self.instance.is_election_board is None:
logger.warning("create_or_update_organization_type() -> is_election_board is out of sync. Updating value.")
logger.warning(
"create_or_update_organization_type() -> is_election_board is out of sync. Updating value."
)
self.instance.is_election_board = False
if self.instance.is_election_board:
@ -242,4 +245,3 @@ class CreateOrUpdateOrganizationTypeHelper:
return False
else:
return True