Move document type's OCR settings from the documents app to the OCR app
This commit is contained in:
@@ -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
@@ -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):
|
||||
|
||||
@@ -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())}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user