Ticket #13123: compiler.diff

File compiler.diff, 772 bytes (added by anentropic, 5 years ago)
  • compiler.py

     
    473473            group_by = self.query.group_by or []
    474474
    475475            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)
    479478            for col in group_by + self.query.related_select_cols + extra_selects:
    480479                if isinstance(col, (list, tuple)):
    481480                    result.append('%s.%s' % (qn(col[0]), qn(col[1])))
Back to Top