Browse Source

DIV-1234 - Delete attachments after successful submission

pull/172/head
Michael Olund 5 years ago
parent
commit
cdca7f5cb4
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      edivorce/apps/core/views/efiling.py

+ 6
- 0
edivorce/apps/core/views/efiling.py View File

@ -152,6 +152,12 @@ def _after_submit_files(request, initial=False):
else: else:
base_url = settings.PROXY_BASE_URL base_url = settings.PROXY_BASE_URL
# purge the attachments
Document.objects.filter(
bceid_user=user,
filing_type=('i' if initial else 'f')
).delete()
receipt_link = base_url + '/cso/filing/status/viewDocument.do?actionType=viewReceipt&packageNo=' + package_number receipt_link = base_url + '/cso/filing/status/viewDocument.do?actionType=viewReceipt&packageNo=' + package_number
_save_response(user, f'{prefix}_filing_receipt_link', receipt_link) _save_response(user, f'{prefix}_filing_receipt_link', receipt_link)


Loading…
Cancel
Save