From 1012cee39ab07854428ea178a1336644f31b86a0 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:12:02 -0800 Subject: [PATCH] Fix: include reprocess in MODIFIED_FIELD_BY_METHOD (#8710) --- src/documents/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/documents/views.py b/src/documents/views.py index 065233a39..f98932a6f 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -980,6 +980,7 @@ class BulkEditView(PassUserMixin): "delete_pages": "checksum", "split": None, "merge": None, + "reprocess": "checksum", } permission_classes = (IsAuthenticated,) @@ -1058,7 +1059,7 @@ class BulkEditView(PassUserMixin): return HttpResponseForbidden("Insufficient permissions") try: - modified_field = self.MODIFIED_FIELD_BY_METHOD[method.__name__] + modified_field = self.MODIFIED_FIELD_BY_METHOD.get(method.__name__, None) if settings.AUDIT_LOG_ENABLED and modified_field: old_documents = { obj["pk"]: obj