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

Method read_queryset

haystack/indexes.py:153–160  ·  view source on GitHub ↗

Get the default QuerySet for read actions. Subclasses can override this method to work with other managers. Useful when working with default managers that filter some objects.

(self, using=None)

Source from the content-addressed store, hash-verified

151 return self.get_model()._default_manager.all()
152
153 def read_queryset(self, using=None):
154 """
155 Get the default QuerySet for read actions.
156
157 Subclasses can override this method to work with other managers.
158 Useful when working with default managers that filter some objects.
159 """
160 return self.index_queryset(using=using)
161
162 def build_queryset(self, using=None, start_date=None, end_date=None):
163 """

Callers 2

_get_objectMethod · 0.45
_load_model_objectsMethod · 0.45

Calls 1

index_querysetMethod · 0.95

Tested by

no test coverage detected