Renewal form

This commit is contained in:
Rebecca Hsieh 2024-12-26 17:10:37 -08:00
parent 5909a7cb49
commit d84a789022
No known key found for this signature in database
9 changed files with 117 additions and 12 deletions

View file

@ -1167,6 +1167,11 @@ class Domain(TimeStampedModel, DomainHelper):
threshold_date = now + timedelta(days=60)
return now < self.expiration_date <= threshold_date
###dummy method for testing for domain renewal form fail or success banner
def update_expiration(self, success=True):
return success
def state_display(self, request=None):
"""Return the display status of the domain."""
if self.is_expired() and (self.state != self.State.UNKNOWN):