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

Method get_query

haystack/views.py:72–81  ·  view source on GitHub ↗

Returns the query provided by the user. Returns an empty string if the query is invalid.

(self)

Source from the content-addressed store, hash-verified

70 return self.form_class(data, **kwargs)
71
72 def get_query(self):
73 """
74 Returns the query provided by the user.
75
76 Returns an empty string if the query is invalid.
77 """
78 if self.form.is_valid():
79 return self.form.cleaned_data["q"]
80
81 return ""
82
83 def get_results(self):
84 """

Callers 15

__call__Method · 0.95
_determine_backendMethod · 0.45
test_runMethod · 0.45
test_log_queryMethod · 0.45
setUpMethod · 0.45
test_altered_namesMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_runMethod · 0.36
test_log_queryMethod · 0.36
setUpMethod · 0.36
test_altered_namesMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36