Ticket #14657: extra_select.diff

File extra_select.diff, 735 bytes (added by Gregory, 5 years ago)
  • django/db/models/sql/compiler.py

     
    479479            for extra_select, extra_params in self.query.extra_select.itervalues():
    480480                extra_selects.append(extra_select)
    481481                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:
    483483                if isinstance(col, (list, tuple)):
    484484                    result.append('%s.%s' % (qn(col[0]), qn(col[1])))
    485485                elif hasattr(col, 'as_sql'):
Back to Top