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

Method _get_searchindex

haystack/models.py:66–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 return self.__dict__.get(attr, None)
65
66 def _get_searchindex(self):
67 from haystack import connections
68
69 return connections[DEFAULT_ALIAS].get_unified_index().get_index(self.model)
70
71 searchindex = property(_get_searchindex)
72

Callers

nothing calls this directly

Calls 2

get_unified_indexMethod · 0.80
get_indexMethod · 0.45

Tested by

no test coverage detected