Hook up investigator

This commit is contained in:
zandercymatics 2024-06-05 15:28:01 -06:00
parent f9cec62a03
commit 9898fe16c0
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 19 additions and 6 deletions

View file

@ -43,6 +43,11 @@ class DomainRequest(TimeStampedModel):
REJECTED = "rejected", "Rejected"
INELIGIBLE = "ineligible", "Ineligible"
@classmethod
def get_status_label(cls, status_name: str):
"""Returns the associated label for a given status name"""
return cls(status_name).label if status_name else None
class StateTerritoryChoices(models.TextChoices):
ALABAMA = "AL", "Alabama (AL)"
ALASKA = "AK", "Alaska (AK)"