X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dfd584e3b136d770bf56569030d10712a8722569..ec20d8aad93b7e0ddfa964f68e5ea31424e8aa4e:/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