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

Method __call__

haystack/views.py:41–53  ·  view source on GitHub ↗

Generates the actual response to the search. Relies on internal, overridable methods to construct the response.

(self, request)

Source from the content-addressed store, hash-verified

39 self.template = template
40
41 def __call__(self, request):
42 """
43 Generates the actual response to the search.
44
45 Relies on internal, overridable methods to construct the response.
46 """
47 self.request = request
48
49 self.form = self.build_form()
50 self.query = self.get_query()
51 self.results = self.get_results()
52
53 return self.create_response()
54
55 def build_form(self, form_kwargs=None):
56 """

Callers

nothing calls this directly

Calls 4

build_formMethod · 0.95
get_queryMethod · 0.95
get_resultsMethod · 0.95
create_responseMethod · 0.95

Tested by

no test coverage detected