From: Radek Czajka Date: Mon, 31 Mar 2014 14:59:58 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/prawokultury.git/commitdiff_plain/9eaf434d4f4cb1c33e0df21bbc2af1136f1d3317?ds=inline fix --- 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)