mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
added withdrawn as new status and migrations
This commit is contained in:
parent
2df5ecb193
commit
75b5cc977b
4 changed files with 58 additions and 1 deletions
|
@ -23,11 +23,13 @@ class DomainApplication(TimeStampedModel):
|
|||
SUBMITTED = "submitted"
|
||||
INVESTIGATING = "investigating"
|
||||
APPROVED = "approved"
|
||||
WITHDRAWN = "Withdrawn"
|
||||
STATUS_CHOICES = [
|
||||
(STARTED, STARTED),
|
||||
(SUBMITTED, SUBMITTED),
|
||||
(INVESTIGATING, INVESTIGATING),
|
||||
(APPROVED, APPROVED),
|
||||
(WITHDRAWN, WITHDRAWN)
|
||||
]
|
||||
|
||||
class StateTerritoryChoices(models.TextChoices):
|
||||
|
@ -505,7 +507,7 @@ class DomainApplication(TimeStampedModel):
|
|||
# This is a side-effect of the state transition
|
||||
self._send_confirmation_email()
|
||||
|
||||
@transition(field="status", source=[SUBMITTED, INVESTIGATING], target=APPROVED)
|
||||
@transition(field="status", source=[SUBMITTED, INVESTIGATING], target=[APPROVED])
|
||||
def approve(self):
|
||||
"""Approve an application that has been submitted.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue