(self, compiler, connection, **extra_context)
| 63 | template = " ORDER BY %(expressions)s" |
| 64 | |
| 65 | def as_sql(self, compiler, connection, **extra_context): |
| 66 | if not connection.features.supports_aggregate_order_by_clause: |
| 67 | raise NotSupportedError( |
| 68 | "This database backend does not support specifying an order on " |
| 69 | "aggregates." |
| 70 | ) |
| 71 | |
| 72 | return super().as_sql(compiler, connection, **extra_context) |
| 73 | |
| 74 | |
| 75 | class Aggregate(Func): |
nothing calls this directly
no test coverage detected