Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unused quoting/encoding in gis db backend

  • Loading branch information...
commit 690170a8b9bbcea1ae51e4020aea49987fefdbd2 1 parent 7e5ebcc
@claudep claudep authored
View
2  django/contrib/gis/db/backends/base.py
@@ -90,8 +90,6 @@ def convert_geom(self, geom_val, geom_field):
# For quoting column values, rather than columns.
def geo_quote_name(self, name):
- if isinstance(name, six.text_type):
- name = name.encode('ascii')
return "'%s'" % name
# GeometryField operations
View
14 django/contrib/gis/db/backends/util.py
@@ -3,20 +3,6 @@
backends.
"""
-from django.utils import six
-
-def gqn(val):
- """
- The geographic quote name function; used for quoting tables and
- geometries (they use single rather than the double quotes of the
- backend quotename function).
- """
- if isinstance(val, six.string_types):
- if isinstance(val, six.text_type): val = val.encode('ascii')
- return "'%s'" % val
- else:
- return str(val)
-
class SpatialOperation(object):
"""
Base class for generating spatial SQL.
Please sign in to comment.
Something went wrong with that request. Please try again.