Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#11216 closed (fixed)

typo: forgot to rename an occurrence

Reported by: Yuri Baburov Owned by: nobody
Component: GIS Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

diff --git a/django/contrib/gis/utils/ogrinspect.py b/django/contrib/gis/utils/ogrinspect.py
index c0c3c40..0784fcf 100644
--- a/django/contrib/gis/utils/ogrinspect.py
+++ b/django/contrib/gis/utils/ogrinspect.py
@@ -192,7 +192,7 @@ def _ogrinspect(data_source, model_name, geom_name='geom', layer_key=0, srid=Non
         elif field_type is OFTDate:
             yield '    %s = models.TimeField(%s)' % (mfield, kwargs_str[2:])
         else:
-            raise TypeError('Unknown field type %s in %s' % (fld_type, mfield))
+            raise TypeError('Unknown field type %s in %s' % (field_type, mfield))
     
     # TODO: Autodetection of multigeometry types (see #7218).
     gtype = layer.geom_type

Attachments (1)

11216.patch (706 bytes ) - added by Yuri Baburov 16 years ago.
fix

Download all attachments as: .zip

Change History (5)

by Yuri Baburov, 16 years ago

Attachment: 11216.patch added

fix

comment:1 by Gary Wilson, 16 years ago

Resolution: fixed
Status: newclosed

(In [10861]) Fixed #11216 and #11218 -- Corrected a few typos, thanks buriy.

comment:2 by Gary Wilson, 16 years ago

(In [10862]) [1.0.X] Fixed #11216 and #11218 -- Corrected a few typos, thanks buriy.

Backport of [10861] from trunk.

comment:3 by ccahoon, 16 years ago

(In [10990]) Fixed #11216 and #11218 -- Corrected a few typos, thanks buriy.

comment:4 by Jacob, 13 years ago

milestone: 1.1

Milestone 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top