Update for organization to have election

This commit is contained in:
Rebecca Hsieh 2024-07-30 13:33:14 -07:00
parent 6637c0f9b1
commit 6c82ec9dc2
No known key found for this signature in database
2 changed files with 11 additions and 2 deletions

View file

@ -215,6 +215,14 @@ class DomainRequest(TimeStampedModel):
}
return org_election_map
@classmethod
def get_org_label(cls, org_name: str):
# Translating the key that is given to the direct readable value
if not org_name:
return None
return cls(org_name).label if org_name else None
class OrganizationChoicesVerbose(models.TextChoices):
"""
Tertiary organization choices