mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix: include reprocess in MODIFIED_FIELD_BY_METHOD (#8710)
This commit is contained in:
parent
19a5733d0d
commit
1012cee39a
@ -980,6 +980,7 @@ class BulkEditView(PassUserMixin):
|
|||||||
"delete_pages": "checksum",
|
"delete_pages": "checksum",
|
||||||
"split": None,
|
"split": None,
|
||||||
"merge": None,
|
"merge": None,
|
||||||
|
"reprocess": "checksum",
|
||||||
}
|
}
|
||||||
|
|
||||||
permission_classes = (IsAuthenticated,)
|
permission_classes = (IsAuthenticated,)
|
||||||
@ -1058,7 +1059,7 @@ class BulkEditView(PassUserMixin):
|
|||||||
return HttpResponseForbidden("Insufficient permissions")
|
return HttpResponseForbidden("Insufficient permissions")
|
||||||
|
|
||||||
try:
|
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:
|
if settings.AUDIT_LOG_ENABLED and modified_field:
|
||||||
old_documents = {
|
old_documents = {
|
||||||
obj["pk"]: obj
|
obj["pk"]: obj
|
||||||
|
Loading…
x
Reference in New Issue
Block a user