mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 03:58:39 +02:00
Fix bug with unknown and add test for it
This commit is contained in:
parent
e27054cd25
commit
0a921e1442
2 changed files with 36 additions and 1 deletions
|
@ -1418,7 +1418,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
def get_state_help_text(self) -> str:
|
||||
"""Returns a str containing additional information about a given state.
|
||||
Returns custom content for when the domain itself is expired."""
|
||||
if not self.is_expired():
|
||||
if not self.is_expired() and self.state != self.State.UNKNOWN:
|
||||
help_text = Domain.State.get_help_text(self.state)
|
||||
else:
|
||||
# Given expired is not a physical state, but it is displayed as such,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue