mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 03:06:01 +02:00
add fix
This commit is contained in:
parent
5c49156ee5
commit
9b0302e873
1 changed files with 3 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue