From ae2897aaf86240c17c94cdd286057537adcbe50d Mon Sep 17 00:00:00 2001 From: HyunTae Hwang Date: Mon, 17 Dec 2018 15:16:00 +0900 Subject: [PATCH] Fixed typo in contrib.gis variable name. --- django/contrib/gis/db/backends/postgis/operations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/contrib/gis/db/backends/postgis/operations.py b/django/contrib/gis/db/backends/postgis/operations.py index b6add9390a..2a8958b89e 100644 --- a/django/contrib/gis/db/backends/postgis/operations.py +++ b/django/contrib/gis/db/backends/postgis/operations.py @@ -278,12 +278,12 @@ class PostGISOperations(BaseSpatialOperations, DatabaseOperations): 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 @@ -297,7 +297,7 @@ class PostGISOperations(BaseSpatialOperations, DatabaseOperations): 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