From 34a9ce6e42adb76460e1945e5ab35792bd5ba128 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 18 Nov 2019 02:22:29 -0400 Subject: [PATCH] Update OCR API submit URL Change OCR API submit URL from documents/{pk}/submit to documents/{pk}/ocr/submit. Signed-off-by: Roberto Rosario --- HISTORY.rst | 2 ++ mayan/apps/ocr/urls.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 549d023641..8e486a8dca 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -167,6 +167,8 @@ - Add setting migrations for the common, converter, documents, file metadata, and document signatures app. - Add document type change API endpoint. +- Change OCR API submit URL from documents/{pk}/submit + to documents/{pk}/ocr/submit. 3.2.10 (2019-XX-XX) =================== diff --git a/mayan/apps/ocr/urls.py b/mayan/apps/ocr/urls.py index 3d2d9b0b25..1bdee11914 100644 --- a/mayan/apps/ocr/urls.py +++ b/mayan/apps/ocr/urls.py @@ -64,7 +64,7 @@ urlpatterns = [ api_urls = [ url( - regex=r'^documents/(?P\d+)/submit/$', + regex=r'^documents/(?P\d+)/ocr/submit/$', view=APIDocumentOCRView.as_view(), name='document-ocr-submit-view' ), url(