Ticket #3982: to_python.diff
File to_python.diff, 810 bytes (added by , 18 years ago) |
---|
-
query.py
192 192 obj, index_end = get_cached_row(klass=self.model, row=row, 193 193 index_start=0, max_depth=self._max_related_depth) 194 194 else: 195 obj = self.model(*row[:index_end]) 195 fields, data = row[:index_end], [] 196 while fields: 197 data.append(self.model._meta.fields[len(data)].to_python(fields.pop(0))) 198 obj = self.model(*tuple(data)) 196 199 for i, k in enumerate(extra_select): 197 200 setattr(obj, k[0], row[index_end+i]) 198 201 yield obj