X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dfd584e3b136d770bf56569030d10712a8722569..f1ab0aec2e8b0787f928b283a0b2a8738a1a35c3:/apps/search/index.py diff --git a/apps/search/index.py b/apps/search/index.py index 7f8bf9f6a..31417ca87 100644 --- a/apps/search/index.py +++ b/apps/search/index.py @@ -940,3 +940,7 @@ class Search(SolrIndex): for f in filters: query = query.query(f) return query + + +if getattr(settings, 'SEARCH_MOCK', False): + from .mock_search import Search