diff options
| author | Ryan Heard <ryanwheard@gmail.com> | 2021-07-02 15:09:13 -0500 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-03-04 12:55:37 +0100 |
| commit | c6b4d62fa2c7f73b87f6ae7e8cf1d64ee5312dc5 (patch) | |
| tree | 238bd8c3045c8d4577e09bd913de9748dcd49968 /docs/releases | |
| parent | 795da6306a048b18c0158496b0d49e8e4f197a32 (diff) | |
Fixed #29865 -- Added logical XOR support for Q() and querysets.
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/4.1.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt index dafee5271f..9e682e6cc2 100644 --- a/docs/releases/4.1.txt +++ b/docs/releases/4.1.txt @@ -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 ~~~~~~~~~~~~~~~~~~~~~~ |
