Ticket #5679: 5679.diff
File 5679.diff, 706 bytes (added by , 17 years ago) |
---|
-
django/contrib/gis/db/models/proxy.py
33 33 return geom 34 34 35 35 def __set__(self, obj, value): 36 if isinstance(value, GEOSGeometry) and (value.geom_type.upper() == self._field._geom ):36 if isinstance(value, GEOSGeometry) and (value.geom_type.upper() == self._field._geom or self._field._geom=="GEOMETRY"): 37 37 # Getting set with GEOS Geometry; geom_type must match that of the field. 38 38 39 39 # If value's SRID is not set, setting it to the field's SRID.