X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/fa8909f95f314f1bea5f52b81381304c68a75417..b4ededb44a47569b05671f08e95a2fe595732fd4:/migdal/search_indexes.py diff --git a/migdal/search_indexes.py b/migdal/search_indexes.py index 63acc1c..2001dab 100644 --- a/migdal/search_indexes.py +++ b/migdal/search_indexes.py @@ -14,7 +14,7 @@ class EntryIndex(indexes.RealTimeSearchIndex, indexes.Indexable): 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, {