mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #36051 -- Declared arity on aggregate functions.
Follow-up to 4a66a69239.
This commit is contained in:
@@ -516,6 +516,7 @@ generated. Here's a brief example::
|
||||
function = "SUM"
|
||||
template = "%(function)s(%(all_values)s%(expressions)s)"
|
||||
allow_distinct = False
|
||||
arity = 1
|
||||
|
||||
def __init__(self, expression, all_values=False, **extra):
|
||||
super().__init__(expression, all_values="ALL " if all_values else "", **extra)
|
||||
|
||||
@@ -511,6 +511,10 @@ Miscellaneous
|
||||
* The minimum supported version of ``oracledb`` is increased from 1.3.2 to
|
||||
2.3.0.
|
||||
|
||||
* Built-in aggregate functions accepting only one argument (``Avg``, ``Count``,
|
||||
``Max``, ``Min``, ``StdDev``, ``Sum``, and ``Variance``) now raise
|
||||
:exc:`TypeError` when called with an incorrect number of arguments.
|
||||
|
||||
.. _deprecated-features-5.2:
|
||||
|
||||
Features deprecated in 5.2
|
||||
|
||||
Reference in New Issue
Block a user