mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-03 01:33:32 +02:00
Merge pull request #963 from cisagov/rjm/852-domain-is-active
852 - Implement isActive method on Domain
This commit is contained in:
commit
7b8eee7b2f
1 changed files with 3 additions and 0 deletions
|
@ -338,6 +338,9 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
help_text="Very basic info about the lifecycle of this domain object",
|
||||
)
|
||||
|
||||
def isActive(self):
|
||||
return self.state == Domain.State.CREATED
|
||||
|
||||
# ForeignKey on UserDomainRole creates a "permissions" member for
|
||||
# all of the user-roles that are in place for this domain
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue