Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11216 closed (fixed)

typo: forgot to rename an occurrence

Reported by: buriy Owned by: nobody
Component: GIS Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation:
Needs tests: Patch needs improvement:
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 buriy 6 years ago.
fix

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by buriy

fix

comment:1 Changed 6 years ago by gwilson

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 6 years ago by gwilson

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

Backport of [10861] from trunk.

comment:3 Changed 6 years ago by ccahoon

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

comment:4 Changed 4 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

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