Ticket #14657: extra_select.diff
File extra_select.diff, 735 bytes (added by , 14 years ago) |
---|
-
django/db/models/sql/compiler.py
479 479 for extra_select, extra_params in self.query.extra_select.itervalues(): 480 480 extra_selects.append(extra_select) 481 481 params.extend(extra_params) 482 for col in group_by + self.query.related_select_cols + extra_selects:482 for col in group_by + self.query.related_select_cols: 483 483 if isinstance(col, (list, tuple)): 484 484 result.append('%s.%s' % (qn(col[0]), qn(col[1]))) 485 485 elif hasattr(col, 'as_sql'):