X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/5873d938a0bb68d6116e843e5e8c20d5a0cf00cf..aa36d36d7c9b39220333253d7c3b2a65bb88dd24:/migdal/search_indexes.py?ds=inline diff --git a/migdal/search_indexes.py b/migdal/search_indexes.py index 2001dab..4257483 100644 --- a/migdal/search_indexes.py +++ b/migdal/search_indexes.py @@ -14,13 +14,13 @@ class EntryIndex(indexes.RealTimeSearchIndex, indexes.Indexable): def index_queryset(self): """Used when the entire index for model is updated.""" - return self.get_model().objects.all() # from example: filter(date__lte=datetime.datetime.now()) + return self.get_model().objects.all() # filter(date__lte=datetime.datetime.now()) add_translatable_index(EntryIndex, { - 'title': indexes.CharField(), - 'lead': indexes.CharField(), - 'body': indexes.CharField() + 'title': indexes.CharField(null=True), + 'lead': indexes.CharField(null=True), + 'body': indexes.CharField(null=True) })