1
0
mirror of https://github.com/django/django.git synced 2025-01-03 06:55:47 +00:00

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

View File

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