From d9eec0883a947a63d6ed7cdffacc25c7e87f81b6 Mon Sep 17 00:00:00 2001 From: Tobias Megies Date: Thu, 28 Sep 2017 15:33:41 +0200 Subject: [PATCH] revert adding negation of queries --- src/jane/documents/models.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/jane/documents/models.py b/src/jane/documents/models.py index ee20ffa..4c49c77 100644 --- a/src/jane/documents/models.py +++ b/src/jane/documents/models.py @@ -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. @@ -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!