mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 18:25:58 +02:00
New transition method to force unknown state
This commit is contained in:
parent
8dad9ea320
commit
01b1e3e520
1 changed files with 13 additions and 0 deletions
|
@ -1338,6 +1338,19 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
logger.info("Changing to DNS_NEEDED state")
|
||||
logger.info("able to transition to DNS_NEEDED state")
|
||||
|
||||
@transition(
|
||||
field="state",
|
||||
source="*",
|
||||
target=State.UNKNOWN,
|
||||
)
|
||||
def force_unknown(self):
|
||||
"""Force a domain to go into our unknown state.
|
||||
|
||||
This can be useful on a limited basis when we need a domain
|
||||
to be created in the registry for some reason.
|
||||
"""
|
||||
pass
|
||||
|
||||
def _disclose_fields(self, contact: PublicContact):
|
||||
"""creates a disclose object that can be added to a contact Create using
|
||||
.disclose= <this function> on the command before sending.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue