mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
Update domain_request.py
This commit is contained in:
parent
9b0302e873
commit
1d5d7f79f1
1 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,10 @@ class DomainRequest(TimeStampedModel):
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_org_label(cls, org_name: str):
|
def get_org_label(cls, org_name: str):
|
||||||
"""Returns the associated label for a given org name"""
|
"""Returns the associated label for a given org name"""
|
||||||
|
# This is an edgecase on domains with no org.
|
||||||
|
# This unlikely to happen but
|
||||||
|
# a break will occur in certain edge cases without this.
|
||||||
|
# (more specifically, csv exports).
|
||||||
if not org_name:
|
if not org_name:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue