Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.0.X]: Fixed #9130 -- Fixed typo in comment, thanks scel.

Backport of r10220 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f9582c8f52199aa285153f2720dd946935db2af0 1 parent f7e52d4
@gdub gdub authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 django/contrib/gis/admin/widgets.py
View
12 django/contrib/gis/admin/widgets.py
@@ -21,7 +21,7 @@ def render(self, name, value, attrs=None):
# Defaulting the WKT value to a blank string -- this
# will be tested in the JavaScript and the appropriate
- # interfaace will be constructed.
+ # interface will be constructed.
self.params['wkt'] = ''
# If a string reaches here (via a validation error on another
@@ -46,7 +46,7 @@ def render(self, name, value, attrs=None):
# Transforming the geometry to the projection used on the
# OpenLayers map.
srid = self.params['srid']
- if value.srid != srid:
+ if value.srid != srid:
try:
ogr = value.ogr
ogr.transform(srid)
@@ -55,14 +55,14 @@ def render(self, name, value, attrs=None):
wkt = ''
else:
wkt = value.wkt
-
+
# Setting the parameter WKT with that of the transformed
# geometry.
self.params['wkt'] = wkt
return loader.render_to_string(self.template, self.params,
context_instance=geo_context)
-
+
def map_options(self):
"Builds the map options hash for the OpenLayers template."
@@ -74,8 +74,8 @@ def ol_projection(srid):
# An array of the parameter name, the name of their OpenLayers
# counterpart, and the type of variable they are.
- map_types = [('srid', 'projection', 'srid'),
- ('display_srid', 'displayProjection', 'srid'),
+ map_types = [('srid', 'projection', 'srid'),
+ ('display_srid', 'displayProjection', 'srid'),
('units', 'units', str),
('max_resolution', 'maxResolution', float),
('max_extent', 'maxExtent', 'bounds'),
Please sign in to comment.
Something went wrong with that request. Please try again.