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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user