mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #36042 -- Raised ValueError when providing composite expressions to aggregates.
This commit is contained in:
parent
6eec703667
commit
470e5545e5
8 changed files with 39 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue