mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-18 10:29:23 +02:00
cleanup
This commit is contained in:
parent
6b6c7b2983
commit
51a980befe
1 changed files with 1 additions and 3 deletions
|
@ -798,12 +798,10 @@ class DomainRequestDeleteView(DomainRequestPermissionDeleteView):
|
|||
domain_request: DomainRequest = self.get_object()
|
||||
contacts_to_delete, duplicates = self._get_orphaned_contacts(domain_request)
|
||||
|
||||
# Delete the DomainRequest
|
||||
self.object = self.get_object()
|
||||
self.object.delete()
|
||||
|
||||
# Delete the DomainRequest
|
||||
# response = super().post(request, *args, **kwargs)
|
||||
|
||||
# Delete orphaned contacts - but only for if they are not associated with a user
|
||||
Contact.objects.filter(id__in=contacts_to_delete, user=None).delete()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue