mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
Merge branch 'main' into za/1901-allow-analysts-to-customize-action-needed-emails
This commit is contained in:
commit
35c8a57aa3
53 changed files with 2346 additions and 2403 deletions
|
@ -135,6 +135,13 @@ class DomainRequest(TimeStampedModel):
|
|||
@classmethod
|
||||
def get_org_label(cls, org_name: str):
|
||||
"""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:
|
||||
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