Ticket #11916: compiler.diff
File compiler.diff, 772 bytes (added by , 15 years ago) |
---|
-
compiler.py
473 473 group_by = self.query.group_by or [] 474 474 475 475 extra_selects = [] 476 for extra_select, extra_params in self.query.extra_select.itervalues(): 477 extra_selects.append(extra_select) 478 params.extend(extra_params) 476 for extra_select_key in self.query.extra_select.iterkeys(): 477 extra_selects.append(extra_select_key) 479 478 for col in group_by + self.query.related_select_cols + extra_selects: 480 479 if isinstance(col, (list, tuple)): 481 480 result.append('%s.%s' % (qn(col[0]), qn(col[1])))