Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: use hard delete when bulk editing custom fields (#8740)

shamoon765bf1d11c6d
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)