From 70d81469861f0abe8e7cb325f743b85f28d03b71 Mon Sep 17 00:00:00 2001 From: Alex Aktsipetrov Date: Fri, 18 Oct 2019 22:16:23 +0300 Subject: [PATCH] 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. --- django/db/models/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/query.py b/django/db/models/query.py index 92349cd0c5..b855720f56 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -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