Ticket #7579: django_-1_srid_patch.postgis.diff
File django_-1_srid_patch.postgis.diff, 632 bytes (added by , 16 years ago) |
---|
-
django/contrib/gis/db/backend/postgis/field.py
89 89 SRID of the field. Specifically, this routine will substitute in the 90 90 ST_Transform() function call. 91 91 """ 92 if value is None or value.srid == self._srid:92 if value is None or self._srid == -1 or value.srid == self._srid: 93 93 return '%s' 94 94 else: 95 95 # Adding Transform() to the SQL placeholder.