django-sql-utils
django-sql-utils copied to clipboard
SubqueryAggregate does not expose parameters other than distinct
See https://github.com/martsberger/django-sql-utils/blob/88cf3a6ea513aacebd5bec616599938e77fd8e0a/sql_util/aggregates.py#L161-L168
This makes the ordering
argument in ArrayAgg
impossible to use. Ditto for any custom Aggregation
a user may want to write
Somewhat related to django/django#28296
Ordering was added, but it is true that if there are other parameters to the aggregation, there is no mechanism to pass them. I will look into making this more general.
The new default
attribute on Sum would be lovely.