Ticket #12344: select_related_fix_v1.diff

File select_related_fix_v1.diff, 900 bytes (added by jbronn, 5 years ago)
  • django/contrib/gis/db/models/sql/compiler.py

     
    191191        if self.connection.ops.oracle or getattr(self.query, 'geo_values', False):
    192192            # We resolve the rest of the columns if we're on Oracle or if
    193193            # the `geo_values` attribute is defined.
    194             for value, field in izip(row[index_start:], fields):
    195                 values.append(self.query.convert_values(value, field, self.connection))
     194            for value, field in map(None, row[index_start:], fields):
     195                values.append(self.query.convert_values(value, field, connection=self.connection))
    196196        else:
    197197            values.extend(row[index_start:])
    198198        return tuple(values)
Back to Top