Ticket #14754: aggregates_relabel_aliases.diff
File aggregates_relabel_aliases.diff, 723 bytes (added by , 14 years ago) |
---|
-
django/db/models/sql/expressions.py
19 19 20 20 def relabel_aliases(self, change_map): 21 21 for node, col in self.cols.items(): 22 self.cols[node] = (change_map.get(col[0], col[0]), col[1]) 22 if hasattr(col, 'relabel_aliases'): 23 col.relabel_aliases(change_map) 24 else: 25 self.cols[node] = (change_map.get(col[0], col[0]), col[1]) 23 26 24 27 ##################################################### 25 28 # Vistor methods for initial expression preparation #