diff --git a/mayan/apps/ocr/views.py b/mayan/apps/ocr/views.py index f163f71d15..a11ee69ad4 100644 --- a/mayan/apps/ocr/views.py +++ b/mayan/apps/ocr/views.py @@ -136,8 +136,8 @@ class DocumentTypeSettingsEditView(SingleObjectEditView): class DocumentOCRContent(SingleObjectDetailView): - model = Document form_class = DocumentContentForm + model = Document object_permission = permission_ocr_content_view def dispatch(self, request, *args, **kwargs):