X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/00f9b1d3f474c595b381a3064988e442122b59be..0540b1d1e3bc54243ea1ecfcd09727809cef054a:/questions/search_indexes.py?ds=sidebyside 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)