fix a test

This commit is contained in:
matthewswspence 2024-12-05 11:30:16 -06:00
parent 3f79b562bd
commit 2e841711e1
No known key found for this signature in database
GPG key ID: FB458202A7852BA4
2 changed files with 2 additions and 2 deletions

View file

@ -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