MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / __init__

Method __init__

haystack/query.py:20–37  ·  view source on GitHub ↗
(self, using=None, query=None)

Source from the content-addressed store, hash-verified

18 """
19
20 def __init__(self, using=None, query=None):
21 # ``_using`` should only ever be a value other than ``None`` if it's
22 # been forced with the ``.using`` method.
23 self._using = using
24 self.query = None
25 self._determine_backend()
26
27 # If ``query`` is present, it should override even what the routers
28 # think.
29 if query is not None:
30 self.query = query
31
32 self._result_cache = []
33 self._result_count = None
34 self._cache_full = False
35 self._load_all = False
36 self._ignored_result_count = 0
37 self.log = logging.getLogger("haystack")
38
39 def _determine_backend(self):
40 # A backend has been manually selected. Use it instead.

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

_determine_backendMethod · 0.95

Tested by

no test coverage detected