Opened 13 years ago
Closed 10 years ago
#16184 closed Bug (fixed)
GeoDjango inspectdb fails for PostGIS
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | GIS | Version: | dev |
Severity: | Normal | Keywords: | inspectdb |
Cc: | radim.blazek@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
GeoDjango inspectdb fails for PostGIS if there are more data types 'geometry' (in more schemas) because PostGISIntrospection.get_postgis_types() is taking simply the first one. Patch is attached.
Another problem is that PostGISIntrospection.get_geometry_type() raises exception if a geometry column has no record in geometry_column which is quite usual. In that case I would suggest to return simply
return 'TextField', {}
instead of raising exception.
Attachments (1)
Change History (6)
by , 13 years ago
Attachment: | introspection.py.patch added |
---|
comment:1 by , 13 years ago
Has patch: | set |
---|---|
Version: | 1.3 → SVN |
comment:2 by , 13 years ago
Needs tests: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 13 years ago
Keywords: | inspectdb added |
---|
comment:5 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch for multiple 'geometry' types