Add in subject, text, and implementation of an email for withdrawl

This commit is contained in:
Rebecca Hsieh 2023-08-20 14:52:23 -07:00
parent 87bb71a214
commit c2abdc3710
No known key found for this signature in database
GPG key ID: 644527A2F375A379
4 changed files with 76 additions and 1 deletions

View file

@ -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):