From 3159a6bf1fff676280e07e3404e32f82bcc75a35 Mon Sep 17 00:00:00 2001 From: Michael Price Date: Wed, 14 Mar 2018 15:55:56 -0400 Subject: [PATCH] Remove ununsed library. Remove unused code. Fix formatting. Signed-off-by: Michael Price --- mayan/apps/document_comments/views.py | 1 - mayan/apps/dynamic_search/classes.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/mayan/apps/document_comments/views.py b/mayan/apps/document_comments/views.py index e927af440a..aee9bdc805 100644 --- a/mayan/apps/document_comments/views.py +++ b/mayan/apps/document_comments/views.py @@ -20,7 +20,6 @@ from .permissions import ( class DocumentCommentCreateView(SingleObjectCreateView): fields = ('comment',) model = Comment - object_verbose_name = _('Comment') def dispatch(self, request, *args, **kwargs): AccessControlList.objects.check_access( diff --git a/mayan/apps/dynamic_search/classes.py b/mayan/apps/dynamic_search/classes.py index 895e479d7f..8571b58049 100644 --- a/mayan/apps/dynamic_search/classes.py +++ b/mayan/apps/dynamic_search/classes.py @@ -2,7 +2,6 @@ from __future__ import absolute_import, unicode_literals import datetime import logging -import re from django.apps import apps from django.db.models import Q @@ -280,7 +279,6 @@ class SearchModel(object): else: field_result_set |= term_query_result_set - logger.debug( 'term_query_result_set: %s', len(term_query_result_set) )