Commit 48e33740 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

apparently excludes don't take multiple arguments

parent 3ec42ef0
......@@ -23,4 +23,4 @@ class ListingIndex(indexes.SearchIndex, indexes.Indexable):
def index_queryset(self, using=None):
"""When the entire index for model is updated."""
return self.get_model().objects.filter(sold=False, cancelled=False)
return self.get_model().objects.filter(sold=False).filter(cancelled=False)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment