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

Method get_queryset

haystack/generic_views.py:107–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

105 return context
106
107 def get_queryset(self):
108 qs = super().get_queryset()
109 for field in self.facet_fields:
110 qs = qs.facet(field)
111
112 if self.date_facet_fields:
113 for field in self.date_facet_fields:
114 qs = qs.date_facet(**field)
115
116 return qs
117
118
119class SearchView(SearchMixin, FormView):

Callers

nothing calls this directly

Calls 3

get_querysetMethod · 0.45
facetMethod · 0.45
date_facetMethod · 0.45

Tested by

no test coverage detected