Code

Opened 5 years ago

Closed 5 years ago

Last modified 3 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 5 years ago.
fix

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by buriy

fix

comment:1 Changed 5 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 5 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 5 years ago by ccahoon

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

comment:4 Changed 3 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.