#12093 closed (fixed)
LayerMapping disregards model inheritance
| Reported by: | Owned by: | jbronn | |
|---|---|---|---|
| Component: | GIS | Version: | 1.1 |
| Severity: | Keywords: | LayerMapping | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
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
Change History (4)
comment:1 by , 16 years ago
| milestone: | → 1.2 |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
comment:2 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:3 by , 16 years ago
Note:
See TracTickets
for help on using tickets.
Confirmed using a different model set. Will try and fix this for 1.2.