change stubbed is_active to check against Domain.State.CREATED

This commit is contained in:
Rachid Mrad 2023-09-11 14:23:16 -04:00
parent 08c50fba63
commit 50e1a484d5
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF

View file

@ -301,9 +301,7 @@ class Domain(TimeStampedModel, DomainHelper):
# TODO: implement a check -- should be performant so it can be called for
# any number of domains on a status page
# this is NOT as simple as checking if Domain.Status.OK is in self.statuses
# NOTE: This was stubbed in all along for 852 and 811
return False
return self.state == Domain.State.CREATED
def delete_request(self):
"""Delete from host. Possibly a duplicate of _delete_host?"""