Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#11216 closed (fixed)

typo: forgot to rename an occurrence

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

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 8 years ago.
fix

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by Yuri Baburov

Attachment: 11216.patch added

fix

comment:1 Changed 8 years ago by Gary Wilson

Resolution: fixed
Status: newclosed

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

comment:2 Changed 8 years ago by Gary Wilson

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

Backport of [10861] from trunk.

comment:3 Changed 7 years ago by ccahoon

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

comment:4 Changed 5 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

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