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

Method load_all_queryset

haystack/indexes.py:387–397  ·  view source on GitHub ↗

Provides the ability to override how objects get loaded in conjunction with ``SearchQuerySet.load_all``. This is useful for post-processing the results from the query, enabling things like adding ``select_related`` or filtering certain data. By default, ret

(self)

Source from the content-addressed store, hash-verified

385 return True
386
387 def load_all_queryset(self):
388 """
389 Provides the ability to override how objects get loaded in conjunction
390 with ``SearchQuerySet.load_all``.
391
392 This is useful for post-processing the results from the query, enabling
393 things like adding ``select_related`` or filtering certain data.
394
395 By default, returns ``all()`` on the model's default manager.
396 """
397 return self.get_model()._default_manager.all()
398
399
400class BasicSearchIndex(SearchIndex):

Callers

nothing calls this directly

Calls 2

get_modelMethod · 0.95
allMethod · 0.45

Tested by

no test coverage detected