Move document type's OCR settings from the documents app to the OCR app

This commit is contained in:
Roberto Rosario
2015-06-24 01:52:33 -04:00
parent 83ed62b210
commit 72b91b79ac
13 changed files with 110 additions and 19 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ class DocumentTypeForm(forms.ModelForm):
Model class form to create or edit a document type
"""
class Meta:
fields = ('name', 'ocr')
fields = ('name',)
model = DocumentType
File diff suppressed because one or more lines are too long
-3
View File
@@ -54,9 +54,6 @@ class DocumentType(models.Model):
"""
name = models.CharField(max_length=32, verbose_name=_('Name'), unique=True)
# TODO: find a way to move this to the ocr app
ocr = models.BooleanField(default=True, verbose_name=_('Automatically queue newly created documents for OCR.'))
objects = DocumentTypeManager()
def __str__(self):
-1
View File
@@ -792,7 +792,6 @@ def document_type_list(request):
'title': _('Document types'),
'hide_link': True,
'extra_columns': [
{'name': _('OCR'), 'attribute': 'ocr'},
{'name': _('Documents'), 'attribute': encapsulate(lambda x: x.documents.count())}
]
}