Fix: include reprocess in MODIFIED_FIELD_BY_METHOD (#8710)

This commit is contained in:
shamoon 2025-01-13 14:12:02 -08:00 committed by GitHub
parent 19a5733d0d
commit 1012cee39a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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