﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15277	TypeError in ogrinspect geodjango gis	willinoed@…	willi	"I got an error when using 

{{{
python manage.py ogrinspect PG:""dbname='thedbname' host='localhost' port='5432' user='theuser' password='thepassword'"" MyModel --layer=thelayer --mapping --multi
}}}


there is a table with a column of type ""time"" in the database and the error when running the command above:


{{{
File ""PATH_TO_VENV\venv\Lib\site-packages\django\contrib\gis\utils\ogrinspect.py"", line 195, in _ogrinspect
    raise TypeError('Unknown field type %s in %s' % (field_type, mfield))
TypeError: Unknown field type <class 'django.contrib.gis.gdal.field.OFTTime'> in
 thelayer_time
}}}



-->
the bug seems to be in ogrinspect.py line 192:


{{{
        elif field_type is OFTDate:
}}}


change:

{{{
        elif field_type is OFTTime:
}}}



"	Bug	closed	GIS	1.2	Normal	fixed	ogrinspect, geodjango OFTTime TypeError	willi john@…	Accepted	1	0	0	0	0	0
