#16184: GeoDjango inspectdb fails for PostGIS
----------------------------+----------------------------
Reporter: radim.blazek@… | Owner: nobody
Type: Bug | Status: new
Milestone: | Component: GIS
Version: 1.3 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
----------------------------+----------------------------
!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.
--
Ticket URL: <https://code.djangoproject.com/ticket/16184>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.