mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #29865 -- Added logical XOR support for Q() and querysets.
This commit is contained in:
committed by
Mariusz Felisiak
parent
795da6306a
commit
c6b4d62fa2
@@ -273,6 +273,11 @@ Models
|
||||
as the ``chunk_size`` argument is provided. In older versions, no prefetching
|
||||
was done.
|
||||
|
||||
* :class:`~django.db.models.Q` objects and querysets can now be combined using
|
||||
``^`` as the exclusive or (``XOR``) operator. ``XOR`` is natively supported
|
||||
on MariaDB and MySQL. For databases that do not support ``XOR``, the query
|
||||
will be converted to an equivalent using ``AND``, ``OR``, and ``NOT``.
|
||||
|
||||
Requests and Responses
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user