Update OCR app

Normalize API base names.

Update ViewSet base class, model classes are not needed
the OCR API views.

Split API tests into content and submit tests.

Puntuate view test strings.

Make use of success and title strings.

Make use of external object mixin in document type
settings view.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-02-22 23:49:48 -04:00
parent 21da6742b0
commit 7e1de2623c
6 changed files with 75 additions and 84 deletions
+2 -1
View File
@@ -43,7 +43,8 @@ def method_document_page_get_ocr_content(self):
page_content = self.ocr_content.content
except DocumentPageOCRContent.DoesNotExist:
return ''
return page_content
else:
return page_content
def method_document_version_get_ocr_content(self):