Ticket #1519: extra-select-list.diff
File extra-select-list.diff, 1.5 KB (added by , 19 years ago) |
---|
-
django/db/models/query.py
72 72 self._order_by = None # Ordering, e.g. ('date', '-name'). If None, use model's ordering. 73 73 self._select_related = False # Whether to fill cache for related objects. 74 74 self._distinct = False # Whether the query should use SELECT DISTINCT. 75 self._select = {} # Dictionary of attname -> SQL.75 self._select = [] # 2-tuple of (attname, SQL). 76 76 self._where = [] # List of extra WHERE clauses to use. 77 77 self._params = [] # List of params to use for extra WHERE clauses. 78 78 self._tables = [] # List of extra tables to use. … … 150 150 "Performs the SELECT database lookup of this QuerySet." 151 151 # self._select is a dictionary, and dictionaries' key order is 152 152 # undefined, so we convert it to a list of tuples. 153 extra_select = self._select .items()153 extra_select = self._select