Initial set of model, form and API changes to support document versions

This commit is contained in:
Roberto Rosario
2011-12-02 02:51:59 -04:00
parent b38d84f663
commit d83e8b5428
5 changed files with 182 additions and 41 deletions

View File

@@ -88,7 +88,7 @@ def do_document_ocr(queue_document):
parser, if the parser fails or if there is no parser registered for
the document mimetype do a visual OCR by calling tesseract
"""
for document_page in queue_document.document.documentpage_set.all():
for document_page in queue_document.document.pages.all():
try:
# Try to extract text by means of a parser
parse_document_page(document_page)