Ticket #16409: 16409-geosqlcompiler.diff

File 16409-geosqlcompiler.diff, 728 bytes (added by Petr Gorodechnyj <petr.gorodechnyj@…>, 12 years ago)

Fixes this problem for GeoQuery

  • django/contrib/gis/db/models/sql/compiler.py

    old new class GeoSQLCompiler(compiler.SQLCompile  
    3737                if isinstance(col, (list, tuple)):
    3838                    alias, column = col
    3939                    table = self.query.alias_map[alias][TABLE_NAME]
    40                     if table in only_load and column not in only_load[table]:
     40                    if table in only_load and col not in only_load[table]:
    4141                        continue
    4242                    r = self.get_field_select(field, alias, column)
    4343                    if with_aliases:
Back to Top