MCPcopy Create free account
hub / github.com/django-haystack/django-haystack / values

Method values

haystack/query.py:594–601  ·  view source on GitHub ↗

Returns a list of dictionaries, each containing the key/value pairs for the result, exactly like Django's ``ValuesQuerySet``.

(self, *fields)

Source from the content-addressed store, hash-verified

592 return clone.query.get_spelling_suggestion(preferred_query)
593
594 def values(self, *fields):
595 """
596 Returns a list of dictionaries, each containing the key/value pairs for
597 the result, exactly like Django's ``ValuesQuerySet``.
598 """
599 qs = self._clone(klass=ValuesSearchQuerySet)
600 qs._fields.extend(fields)
601 return qs
602
603 def values_list(self, *fields, **kwargs):
604 """

Callers 11

nav_subtitleMethod · 0.45
test_valuesMethod · 0.45
test_values_sqsMethod · 0.45
test_values_slicingMethod · 0.45
test_values_slicingMethod · 0.45
test_values_slicingMethod · 0.45
test_values_queriesMethod · 0.45
tearDownClassMethod · 0.45
test_values_slicingMethod · 0.45

Calls 1

_cloneMethod · 0.95

Tested by 9

test_valuesMethod · 0.36
test_values_sqsMethod · 0.36
test_values_slicingMethod · 0.36
test_values_slicingMethod · 0.36
test_values_slicingMethod · 0.36
test_values_queriesMethod · 0.36
tearDownClassMethod · 0.36
test_values_slicingMethod · 0.36