﻿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
12093	LayerMapping disregards model inheritance	omat@…	jbronn	"With 2 models as such:

{{{
class Place(models.Model):
    location = models.PointField()

class Hotel(Place):
    name = models.DateTimeField()
}}}

While I can import into Place using LayerMapping, when I try to import into Hotel:

{{{
mapping = {'name': 'name',
          'location': 'POINT'}
LayerMapping(Hotel, ds, mapping)
}}}

I get a:

LayerMapError: Geometry column does not exist for model

It seems like LayerMapping is disregarding model inheritance.


--
omat"		closed	GIS	1.1		fixed	LayerMapping		Unreviewed	0	0	0	0	0	0
