diff --git a/djangocms_blog/search_indexes.py b/djangocms_blog/search_indexes.py index 02b596c..d6999c3 100644 --- a/djangocms_blog/search_indexes.py +++ b/djangocms_blog/search_indexes.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- from aldryn_search.helpers import get_plugin_index_data from aldryn_search.utils import get_index_base, strip_tags - from haystack import indexes from .models import Post diff --git a/tests/test_search.py b/tests/test_search.py index 8cdff30..1b38df8 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -1,13 +1,13 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals -from djangocms_blog.search_indexes import PostIndex -from . import BaseTest +from haystack.constants import DEFAULT_ALIAS +from haystack.query import SearchQuerySet from djangocms_blog.models import Post +from djangocms_blog.search_indexes import PostIndex -from haystack.query import SearchQuerySet -from haystack.constants import DEFAULT_ALIAS +from . import BaseTest class BlogIndexingTests(BaseTest):