mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
Hook up investigator
This commit is contained in:
parent
f9cec62a03
commit
9898fe16c0
2 changed files with 19 additions and 6 deletions
|
@ -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)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue