mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Frontend UI for redo OCR
This commit is contained in:
parent
13ffe468df
commit
c9bdf1c184
4 changed files with 47 additions and 15 deletions
|
|
@ -323,6 +323,7 @@ class BulkEditSerializer(DocumentListSerializer):
|
|||
"remove_tag",
|
||||
"modify_tags",
|
||||
"delete",
|
||||
"redo_ocr",
|
||||
],
|
||||
label="Method",
|
||||
write_only=True,
|
||||
|
|
@ -356,6 +357,8 @@ class BulkEditSerializer(DocumentListSerializer):
|
|||
return bulk_edit.modify_tags
|
||||
elif method == "delete":
|
||||
return bulk_edit.delete
|
||||
elif method == "redo_ocr":
|
||||
return bulk_edit.redo_ocr
|
||||
else:
|
||||
raise serializers.ValidationError("Unsupported method.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue