From 765bf1d11c6d7a2a6c4c0b59240f48a19b071c65 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 14 Jan 2025 16:47:29 -0800 Subject: [PATCH] Fix: use hard delete when bulk editing custom fields (#8740) --- src/documents/bulk_edit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/bulk_edit.py b/src/documents/bulk_edit.py index 9698f65cf..de43aed87 100644 --- a/src/documents/bulk_edit.py +++ b/src/documents/bulk_edit.py @@ -180,7 +180,7 @@ def modify_custom_fields( CustomFieldInstance.objects.filter( document_id__in=affected_docs, field_id__in=remove_custom_fields, - ).delete() + ).hard_delete() bulk_update_documents.delay(document_ids=affected_docs)