mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-20 20:46:53 +00:00
Chore: give OCR templates their own matching fields
Templates are never assigned to documents, so the classifier-based Automatic matching inherited from MatchingModel could never work. Declare the matching fields with the workflow trigger choices instead. Also keep zones when their custom field is deleted, allow longer OCR language lists, fix help texts, and regenerate the unreleased migration.
This commit is contained in:
1 parent
8e07452604
commit
4c2df48795
6 files changed
+91
-36
No files matched your search
@@ -227,6 +227,7 @@ SPECTACULAR_SETTINGS = {
|
||||
},
|
||||
"ENUM_NAME_OVERRIDES": {
|
||||
"MatchingAlgorithm": "documents.models.MatchingModel.MATCHING_ALGORITHMS",
|
||||
"WorkflowTriggerMatchingAlgorithmEnum": "documents.models.WorkflowTrigger.WorkflowTriggerMatching",
|
||||
"BarcodeFormatEnum": "documents.models.DocumentBarcode.Format",
|
||||
"NoteFormatEnum": "documents.models.Note.Format",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user