Skip to content

Commit

Permalink
revert adding negation of queries
Browse files Browse the repository at this point in the history
  • Loading branch information
megies committed Sep 28, 2017
1 parent 8f307df commit d9eec08
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/jane/documents/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ def get_queryset(self):
queryset = queryset.defer('data')
return queryset

def get_filtered_queryset(self, document_type, queryset=None, negate=False,
**kwargs):
def get_filtered_queryset(self, document_type, queryset=None, **kwargs):
"""
Returns a queryset filtered on the items in the JSON index field.
Expand All @@ -104,8 +103,7 @@ def get_filtered_queryset(self, document_type, queryset=None, negate=False,
# XXX gets changed while evaluating the request (e.g. table row gets
# XXX deleted during request == ids of rows change??)
indices_queryset = DocumentIndex.objects.get_filtered_queryset(
document_type=document_type, queryset=None, negate=negate,
**kwargs)
document_type=document_type, queryset=None, **kwargs)

# XXX TODO this does not cover the case of multiple indices for one
# XXX TODO single document yet!
Expand Down

0 comments on commit d9eec08

Please sign in to comment.