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

Method get_context

haystack/views.py:127–146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125 return {}
126
127 def get_context(self):
128 paginator, page = self.build_page()
129
130 context = {
131 "query": self.query,
132 "form": self.form,
133 "page": page,
134 "paginator": paginator,
135 "suggestion": None,
136 }
137
138 if (
139 hasattr(self.results, "query")
140 and self.results.query.backend.include_spelling
141 ):
142 context["suggestion"] = self.form.get_suggestion()
143
144 context.update(self.extra_context())
145
146 return context
147
148 def create_response(self):
149 """

Callers 2

create_responseMethod · 0.95
test_spellingMethod · 0.95

Calls 4

build_pageMethod · 0.95
extra_contextMethod · 0.95
get_suggestionMethod · 0.80
updateMethod · 0.45

Tested by 1

test_spellingMethod · 0.76