Ticket #17107: adapter.py.patch

File adapter.py.patch, 270 bytes (added by takinbo@…, 13 years ago)

patch to fix the SRID problem when using PostGIS with Django

Line 
132c32,35
2< return 'ST_GeomFromEWKB(E%s)' % Binary(self.ewkb)
3---
4> if self.srid:
5> return 'ST_SetSRID(ST_GeomFromEWKB(E%s), %d)' % (Binary(self.ewkb), self.srid)
6> else:
7> return 'ST_GeomFromEWKB(E%s)' % Binary(self.ewkb)
Back to Top