Merge remote-tracking branch 'origin/main' into rjm/797-ineligible-status

This commit is contained in:
rachidatecs 2023-08-25 15:11:31 -04:00
commit b6af335e03
No known key found for this signature in database
GPG key ID: 3CEBBFA7325E5525
26 changed files with 800 additions and 45 deletions

View file

@ -594,6 +594,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(
"withdraw",
"emails/domain_request_withdrawn.txt",
"emails/domain_request_withdrawn_subject.txt",
)
@transition(field="status", source=[IN_REVIEW, APPROVED], target=REJECTED)
def reject(self):