﻿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
20758	PostGISCreation failed by index creation for PointField	Christoph Heer	nobody	"I want to test my GeoDjango project but the index creation a PointField fails.


{{{
   db_type = f.db_type(connection=self.connection)
>  if db_type.startswith('varchar'):
E  AttributeError: 'NoneType' object has no attribute 'startswith'
}}}



The PointField returns only None in this state. The if statements are only relevant for VARCHAR or TEXT fields but not for Geo Fields.
Patch: https://github.com/django/django/pull/1367"	Bug	closed	Database layer (models, ORM)	1.5	Normal	invalid	GeoDjango, Index, Test		Unreviewed	1	0	0	0	0	0
