See
|
# Add test for output_field, distinct, and when resolved_expression.field.name isn't what we're aggregating |
|
|
|
if not self.output_field: |
|
self._output_field = self.output_field = target_expression.field |
|
if self.distinct is not None: |
|
aggregation = self.aggregate(target_expression, distinct=self.distinct) |
|
else: |
|
aggregation = self.aggregate(target_expression) |
This makes the ordering argument in ArrayAgg impossible to use. Ditto for any custom Aggregation a user may want to write
See
django-sql-utils/sql_util/aggregates.py
Lines 161 to 168 in 88cf3a6
This makes the
orderingargument inArrayAggimpossible to use. Ditto for any customAggregationa user may want to write