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

Method get_model

haystack/indexes.py:134–143  ·  view source on GitHub ↗

Should return the ``Model`` class (not an instance) that the rest of the ``SearchIndex`` should use. This method is required & you must override it to return the correct class.

(self)

Source from the content-addressed store, hash-verified

132 )
133
134 def get_model(self):
135 """
136 Should return the ``Model`` class (not an instance) that the rest of the
137 ``SearchIndex`` should use.
138
139 This method is required & you must override it to return the correct class.
140 """
141 raise NotImplementedError(
142 "You must provide a 'get_model' method for the '%r' index." % self
143 )
144
145 def index_queryset(self, using=None):
146 """

Callers 8

index_querysetMethod · 0.95
build_querysetMethod · 0.95
prepareMethod · 0.95
clearMethod · 0.95
load_all_querysetMethod · 0.95
buildMethod · 0.45
haystack_get_modelsFunction · 0.45
haystack_get_modelFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected