Ticket #11916: django.db.models.sql.query.patch
File django.db.models.sql.query.patch, 804 bytes (added by , 15 years ago) |
---|
-
django/db/models/sql/query.py
885 885 group_by = self.group_by or [] 886 886 887 887 extra_selects = [] 888 for extra_select , extra_params in self.extra_select.itervalues():889 extra_selects.append(extra_select )890 params.extend(extra_params) 888 for extra_select_key in self.extra_select.iterkeys(): 889 extra_selects.append(extra_select_key) 890 891 891 for col in group_by + self.related_select_cols + extra_selects: 892 892 if isinstance(col, (list, tuple)): 893 893 result.append('%s.%s' % (qn(col[0]), qn(col[1])))