mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-16 06:24:12 +02:00
Renewal form
This commit is contained in:
parent
5909a7cb49
commit
d84a789022
9 changed files with 117 additions and 12 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue