mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-26 11:03:49 +02:00
fix a test
This commit is contained in:
parent
3f79b562bd
commit
2e841711e1
2 changed files with 2 additions and 2 deletions
|
@ -1154,7 +1154,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
Returns True if expired, False otherwise.
|
||||
"""
|
||||
if self.expiration_date is None:
|
||||
return True
|
||||
return self.state != self.State.DELETED
|
||||
now = timezone.now().date()
|
||||
return self.expiration_date < now
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue