Cleanup OCR app code and link registration

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-09-24 15:37:18 -04:00
parent d7818b64b0
commit b03758ed8b
4 changed files with 20 additions and 11 deletions

View File

@@ -46,7 +46,7 @@ class DocumentOCRContentDeleteView(MultipleObjectConfirmActionView):
return result
def object_action(self, form, instance):
DocumentPageOCRContent.objects.delete_ocr_content_for(
DocumentPageOCRContent.objects.delete_content_for(
document=instance, user=self.request.user
)