summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2025-01-05 10:09:46 -0500
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-01-07 11:42:06 +0100
commit470e5545e56e8510f9b9d39a96d7094fedd9c45a (patch)
tree371d33bcc1bcbbf205137aa6627b17fa4f751e6f /docs/ref
parent6eec703667505d87d1354323548943c8d546c5a2 (diff)
Refs #36042 -- Raised ValueError when providing composite expressions to aggregates.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/expressions.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt
index f273b00a9e..6faec969c3 100644
--- a/docs/ref/models/expressions.txt
+++ b/docs/ref/models/expressions.txt
@@ -1105,6 +1105,14 @@ calling the appropriate methods on the wrapped expression.
``UNNEST``, etc.) to skip optimization and be properly evaluated when
annotations spawn rows themselves. Defaults to ``False``.
+ .. attribute:: allows_composite_expressions
+
+ .. versionadded:: 5.2
+
+ Tells Django that this expression allows composite expressions, for
+ example, to support :ref:`composite primary keys
+ <cpk-and-database-functions>`. Defaults to ``False``.
+
.. method:: resolve_expression(query=None, allow_joins=True, reuse=None, summarize=False, for_save=False)
Provides the chance to do any preprocessing or validation of