Re: psycopg2 and Binary

2011-09-07 Thread Jonathan S
So, it works if I patch django.contrib.gis.db.backends.postgis.adapter. But that's obviously *not* the way to go... class PostGISAdapter(object): ... def getquoted(self): "Returns a properly quoted string for use in PostgreSQL/ PostGIS." # Want to use WKB, so wrap with psy

psycopg2 and Binary

2011-09-07 Thread Jonathan S
Hi django users, Not sure whether this is a bug or configuration issue. I have a postgres with postgis setup. It works perfect on a postgres 8.4 machine, but it doesn't on a postgres 9.1 machine. The problem is when constructing GIS queries. django.contrib.gis relies on psycopg2.Binary for encod