From 9eaf434d4f4cb1c33e0df21bbc2af1136f1d3317 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 31 Mar 2014 16:59:58 +0200 Subject: [PATCH] fix --- events/search_indexes.py | 4 ---- questions/search_indexes.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/events/search_indexes.py b/events/search_indexes.py index 2445da6..6b30345 100644 --- a/events/search_indexes.py +++ b/events/search_indexes.py @@ -13,10 +13,6 @@ class EventIndex(indexes.SearchIndex, indexes.Indexable): 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), diff --git a/questions/search_indexes.py b/questions/search_indexes.py index ae126f0..e2e05f8 100755 --- a/questions/search_indexes.py +++ b/questions/search_indexes.py @@ -14,6 +14,6 @@ class QuestionIndex(indexes.SearchIndex, indexes.Indexable): def get_model(self): return Question - def index_queryset(self): + def index_queryset(self, using=None): """Used when the entire index for model is updated.""" return self.get_model().objects.filter(published=True) -- 2.20.1