mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-31 09:43:54 +02:00
Add in subject, text, and implementation of an email for withdrawl
This commit is contained in:
parent
87bb71a214
commit
c2abdc3710
4 changed files with 76 additions and 1 deletions
|
@ -590,6 +590,11 @@ class DomainApplication(TimeStampedModel):
|
|||
@transition(field="status", source=[SUBMITTED, IN_REVIEW], target=WITHDRAWN)
|
||||
def withdraw(self):
|
||||
"""Withdraw an application that has been submitted."""
|
||||
self._send_status_update_email(
|
||||
"action needed",
|
||||
"emails/domain_request_withdrawn.txt",
|
||||
"emails/domain_request_withdrawn_subject.txt",
|
||||
)
|
||||
|
||||
@transition(field="status", source=[IN_REVIEW, APPROVED], target=REJECTED)
|
||||
def reject(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue