Update views.py

This commit is contained in:
shamoon committed 2026-10-20 16:49:32 -07:00
1 parent f5526d5700
commit cec393dcae
1 file changed
+6 -1
+6 -1
View File
@@ -2302,7 +2302,12 @@ class DocumentViewSet(
},
),
)
@action(methods=["post"], detail=True, url_path="run-zone-ocr")
@action(
methods=["post"],
detail=True,
url_path="run-zone-ocr",
permission_classes=[IsAuthenticated],
)
def run_zone_ocr(self, request, pk=None):
"""
Run zone-based OCR extraction on this document, with the given template