Adjusted QuerySet._filter_or_exclude() call to use negated=False, rather than None.

None was a remnant from the times _filter_or_exclude accepted
qtype/mapper as the first arg.
This commit is contained in:
Alex Aktsipetrov 2019-10-18 22:16:23 +03:00 committed by Mariusz Felisiak
parent 09578f6dfb
commit 70d8146986
1 changed files with 1 additions and 1 deletions

View File

@ -935,7 +935,7 @@ class QuerySet:
clone.query.add_q(filter_obj)
return clone
else:
return self._filter_or_exclude(None, **filter_obj)
return self._filter_or_exclude(False, **filter_obj)
def _combinator_query(self, combinator, *other_qs, all=False):
# Clone the query to inherit the select list and everything