summaryrefslogtreecommitdiff
path: root/docs/releases/6.1.txt
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2026-04-18 08:53:21 +0200
committerGitHub <noreply@github.com>2026-04-18 08:53:21 +0200
commited79c5959add54b6e8ea589ec601e0d2e801517e (patch)
tree0d00f241bea6de88203d1314c7de92cb262b3a3f /docs/releases/6.1.txt
parentd687d412a9abd9c80e31945f16ce32c020512394 (diff)
Fixed #37028 -- Added BitAnd(), BitOr(), and BitXor() aggregates.
Diffstat (limited to 'docs/releases/6.1.txt')
-rw-r--r--docs/releases/6.1.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/releases/6.1.txt b/docs/releases/6.1.txt
index 77188e0c8e..477117c004 100644
--- a/docs/releases/6.1.txt
+++ b/docs/releases/6.1.txt
@@ -315,6 +315,11 @@ Models
:class:`~django.db.models.query.QuerySet` is ordered and the ordering is
deterministic.
+* The new :class:`~django.db.models.BitAnd`, :class:`~django.db.models.BitOr`,
+ and :class:`~django.db.models.BitXor` aggregates return the bitwise ``AND``,
+ ``OR``, ``XOR``, respectively. These aggregates were previously included only
+ in ``contrib.postgres``.
+
Pagination
~~~~~~~~~~
@@ -420,6 +425,9 @@ backends.
``get_geom_placeholder_sql`` and is expected to return a two-elements tuple
composed of an SQL format string and a tuple of associated parameters.
+* Set the new ``DatabaseFeatures.supports_bit_aggregations`` attribute to
+ ``False`` if the database doesn't support bitwise aggregations.
+
:mod:`django.contrib.admin`
---------------------------
@@ -539,6 +547,12 @@ Miscellaneous
:ref:`expressions <writing-your-own-query-expressions>`, is deprecated in
favor of the newly introduced ``quote_name()`` method.
+* The ``BitAnd``, ``BitOr``, and ``BitXor`` classes in
+ ``django.contrib.postgres.aggregates`` are deprecated in favor of the
+ generally available :class:`~django.db.models.BitAnd`,
+ :class:`~django.db.models.BitOr`, and :class:`~django.db.models.BitXor`
+ classes.
+
Features removed in 6.1
=======================