def index_queryset(self):
"""Used when the entire index for model is updated."""
- return self.get_model().objects.filter(date__lte=datetime.datetime.now())
+ return self.get_model().objects.all() # from example: filter(date__lte=datetime.datetime.now())
add_translatable_index(EntryIndex, {