Ticket #11881: query.py.patch
File query.py.patch, 502 bytes (added by , 15 years ago) |
---|
-
query.py
old new 323 323 query = AggregateQuery(self.model, self.connection) 324 324 325 325 obj = self.clone() 326 327 # We don't need ORDER BY in the subquery, since it does not change the result 328 obj.clear_ordering(True) 326 329 327 330 # Remove any aggregates marked for reduction from the subquery 328 331 # and move them to the outer AggregateQuery.