]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: use hard delete when bulk editing custom fields (#8740)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Wed, 15 Jan 2025 00:47:29 +0000 (16:47 -0800)
committerGitHub <noreply@github.com>
Wed, 15 Jan 2025 00:47:29 +0000 (16:47 -0800)
src/documents/bulk_edit.py

index 9698f65cf83ebf735ab58c02d9362877a4393a63..de43aed87fcfe883257788f4fb6fc0af7cab0969 100644 (file)
@@ -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)