Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
bookshare
Commits
48e33740
Commit
48e33740
authored
Apr 07, 2015
by
Daniel W Bond
Browse files
apparently excludes don't take multiple arguments
parent
3ec42ef0
Changes
1
Hide whitespace changes
Inline
Side-by-side
bookshare/trades/search_indexes.py
View file @
48e33740
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment