from events.models import Event
-class EventIndex(indexes.RealTimeSearchIndex, indexes.Indexable):
+class EventIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(null=True,
model_attr=localize_field('title', settings.LANGUAGE_CODE),
document=True)
def get_model(self):
return Event
- def index_queryset(self):
- """Used when the entire index for model is updated."""
- return self.get_model().objects.all()
-
add_translatable_index(EventIndex, {
'organizer': indexes.CharField(null=True),