mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
init
This commit is contained in:
parent
0fecc199d0
commit
56a8f83e18
3 changed files with 615 additions and 581 deletions
|
@ -151,6 +151,11 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
# previously existed but has been deleted from the registry
|
||||
DELETED = "deleted", "Deleted"
|
||||
|
||||
@classmethod
|
||||
def get_state_label(cls, state: str):
|
||||
"""Returns the associated label for a given state value"""
|
||||
return cls(state).label if state else None
|
||||
|
||||
@classmethod
|
||||
def get_help_text(cls, state) -> str:
|
||||
"""Returns a help message for a desired state. If none is found, an empty string is returned"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue