1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Removed unused methods in GIS adapter.

This commit is contained in:
Tim Graham 2015-04-09 08:57:29 -04:00
parent a10b4c010a
commit c7679f1b58
2 changed files with 0 additions and 6 deletions

View File

@ -14,6 +14,3 @@ class WKTAdapter(object):
def __str__(self): def __str__(self):
return self.wkt return self.wkt
def prepare_database_save(self, unused):
return self

View File

@ -42,6 +42,3 @@ class PostGISAdapter(object):
"Returns a properly quoted string for use in PostgreSQL/PostGIS." "Returns a properly quoted string for use in PostgreSQL/PostGIS."
# psycopg will figure out whether to use E'\\000' or '\000' # psycopg will figure out whether to use E'\\000' or '\000'
return str('ST_GeomFromEWKB(%s)' % self._adapter.getquoted().decode()) return str('ST_GeomFromEWKB(%s)' % self._adapter.getquoted().decode())
def prepare_database_save(self, unused):
return self