mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-31 01:33:56 +02:00
Preliminary changes
This commit is contained in:
parent
9c1e3fa013
commit
c6baf9c98b
5 changed files with 197 additions and 36 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue