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

Method get

haystack/generic_views.py:122–131  ·  view source on GitHub ↗

Handles GET requests and instantiates a blank version of the form.

(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

120 """A view class for searching a Haystack managed search index"""
121
122 def get(self, request, *args, **kwargs):
123 """
124 Handles GET requests and instantiates a blank version of the form.
125 """
126 form_class = self.get_form_class()
127 form = self.get_form(form_class)
128
129 if form.is_valid():
130 return self.form_valid(form)
131 return self.form_invalid(form)
132
133
134class FacetedSearchView(FacetedSearchMixin, SearchView):

Callers 15

searchMethod · 0.80
__init__Method · 0.80
convertMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 2

form_validMethod · 0.80
form_invalidMethod · 0.80

Tested by 15

test_search_no_queryMethod · 0.64
test_search_queryMethod · 0.64
test_invalid_pageMethod · 0.64
test_paginationMethod · 0.64
test_thread_safetyMethod · 0.64
test_spellingMethod · 0.64
test_search_no_queryMethod · 0.64
test_search_no_queryMethod · 0.64
test_search_queryMethod · 0.64
test_invalid_pageMethod · 0.64
test_get_identifierMethod · 0.64