diff options
| author | HyunTae Hwang <hwanght1@gmail.com> | 2018-12-17 15:16:00 +0900 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-12-16 20:16:00 -1000 |
| commit | ae2897aaf86240c17c94cdd286057537adcbe50d (patch) | |
| tree | 2c33970c9cda9a7aa9030a3bf222c6961e1f181e | |
| parent | 315357ad25a6590e7f4564ec2e56a22132b09001 (diff) | |
Fixed typo in contrib.gis variable name.
| -rw-r--r-- | django/contrib/gis/db/backends/postgis/operations.py | 6 |
1 files 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 |
