Skip to content

Commit

Permalink
Fixed typo in contrib.gis variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
candypoplatte authored and timgraham committed Dec 17, 2018
1 parent 315357a commit ae2897a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django/contrib/gis/db/backends/postgis/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,12 @@ def get_geom_placeholder(self, f, value, compiler):
not in the SRID of the field. Specifically, this routine will
substitute in the ST_Transform() function call.
"""
tranform_func = self.spatial_function_name('Transform')
transform_func = self.spatial_function_name('Transform')
if hasattr(value, 'as_sql'):
if value.field.srid == f.srid:
placeholder = '%s'
else:
placeholder = '%s(%%s, %s)' % (tranform_func, f.srid)
placeholder = '%s(%%s, %s)' % (transform_func, f.srid)
return placeholder

# Get the srid for this object
Expand All @@ -297,7 +297,7 @@ def get_geom_placeholder(self, f, value, compiler):
if value_srid is None or value_srid == f.srid:
placeholder = '%s'
else:
placeholder = '%s(%%s, %s)' % (tranform_func, f.srid)
placeholder = '%s(%%s, %s)' % (transform_func, f.srid)

return placeholder

Expand Down

0 comments on commit ae2897a

Please sign in to comment.