Ticket #11087: 11087.diff
File 11087.diff, 954 bytes (added by , 16 years ago) |
---|
-
contrib/gis/db/models/sql/where.py
35 35 return super(WhereNode, self).add(data, connector) 36 36 37 37 obj, lookup_type, value = data 38 alias, col, field = obj.alias,obj.col, obj.field38 col, field = obj.col, obj.field 39 39 40 40 if not hasattr(field, "geom_type"): 41 41 # Not a geographic field, so call `WhereNode.add`. … … 76 76 # the `get_geo_where_clause` to construct the appropriate 77 77 # spatial SQL when `make_atom` is called. 78 78 annotation = GeoAnnotation(field, value, where) 79 alias = obj.alias 79 80 return super(WhereNode, self).add(((alias, col, field.db_type()), lookup_type, annotation, params), connector) 80 81 81 82 def make_atom(self, child, qn):