This commit is contained in:
shamoon committed 2026-10-20 11:23:44 -07:00
1 parent 05da0ba5a3
commit e976b2ec7a
3 files changed
+221 -5

No files matched your search

+3 -5
View File
@@ -43,11 +43,9 @@ def get_templates_for_document(document: Document):
enabled=True,
)
owner = get_root_document(document).owner
if owner is not None:
templates = templates.filter(
id__in=permitted_object_ids(owner, OcrTemplate, "view_ocrtemplate"),
)
return templates
return templates.filter(
id__in=permitted_object_ids(owner, OcrTemplate, "view_ocrtemplate"),
)
def run_zone_extraction(