mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #29865 -- Added logical XOR support for Q() and querysets.
This commit is contained in:
parent
795da6306a
commit
c6b4d62fa2
19 changed files with 311 additions and 18 deletions
|
@ -526,6 +526,7 @@ class QuerySetSetOperationTests(TestCase):
|
|||
operators = [
|
||||
("|", operator.or_),
|
||||
("&", operator.and_),
|
||||
("^", operator.xor),
|
||||
]
|
||||
for combinator in combinators:
|
||||
combined_qs = getattr(qs, combinator)(qs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue