Take another query as a parameter to the FROM clause and only select the elements in the provided list.
| 165 | |
| 166 | |
| 167 | class AggregateQuery(Query): |
| 168 | """ |
| 169 | Take another query as a parameter to the FROM clause and only select the |
| 170 | elements in the provided list. |
| 171 | """ |
| 172 | |
| 173 | compiler = "SQLAggregateCompiler" |
| 174 | |
| 175 | def __init__(self, model, inner_query): |
| 176 | self.inner_query = inner_query |
| 177 | super().__init__(model) |