This commit is contained in:
zandercymatics 2024-07-11 13:02:53 -06:00
parent 5c49156ee5
commit 9b0302e873
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -136,6 +136,9 @@ class DomainRequest(TimeStampedModel):
@classmethod
def get_org_label(cls, org_name: str):
"""Returns the associated label for a given org name"""
if not org_name:
return None
org_names = org_name.split("_election")
if len(org_names) > 0:
org_name = org_names[0]