Preliminary changes

This commit is contained in:
zandercymatics 2023-09-27 14:45:33 -06:00
parent 9c1e3fa013
commit c6baf9c98b
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
5 changed files with 197 additions and 36 deletions

View file

@ -598,7 +598,11 @@ class DomainApplication(TimeStampedModel):
"emails/domain_request_withdrawn.txt",
"emails/domain_request_withdrawn_subject.txt",
)
# TODO
#def delete(self, *args, **kwargs):
#super().delete(*args, **kwargs)
@transition(
field="status",
source=[IN_REVIEW, APPROVED],
@ -612,7 +616,7 @@ class DomainApplication(TimeStampedModel):
(will cascade), and send an email notification."""
if self.status == self.APPROVED:
self.approved_domain.delete_request()
self.approved_domain.deletedInEpp()
self.approved_domain.delete()
self.approved_domain = None