Ticket #13159: quote_aggregate_alias_orderby.patch
File quote_aggregate_alias_orderby.patch, 552 bytes (added by , 15 years ago) |
---|
-
compiler.py
327 327 continue 328 328 col, order = get_order_dir(field, asc) 329 329 if col in self.query.aggregate_select: 330 result.append('%s %s' % ( col, order))330 result.append('%s %s' % (qn(col), order)) 331 331 continue 332 332 if '.' in field: 333 333 # This came in through an extra(order_by=...) addition. Pass it