Hide import to allow tests to run

This commit is contained in:
Roberto Rosario
2015-01-03 23:46:02 -04:00
parent 7c6b11b619
commit ff0e9b0d42

View File

@@ -12,7 +12,6 @@ from acls.models import AccessEntry
from common.utils import load_backend
from permissions.models import Permission
from .models import RecentSearch
from .settings import LIMIT
logger = logging.getLogger(__name__)
@@ -81,6 +80,8 @@ class SearchModel(object):
return [normspace(' ', (t[0] or t[1]).strip()) for t in findterms(query_string)]
def search(self, query_string, user, global_and_search=False):
from .models import RecentSearch
elapsed_time = 0
start_time = datetime.datetime.now()
result_set = set()