Ticket #11216: 11216.patch

File 11216.patch, 706 bytes (added by Yuri Baburov, 15 years ago)

fix

  • django/contrib/gis/utils/ogrinspect.py

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