Commit 45fb0157 authored by chrismurf's avatar chrismurf

Add Geography Type to GeoAlchemy Backend

The current GeoAlchemy backend only works with geometry columns, and ignores geography columns (which are also supported by geoalchemy).  This 1-word fix adds support for geography columns.
parent ba4e10ce
......@@ -4,7 +4,7 @@ from .fields import GeoJSONField
class AdminModelConverter(SQLAAdminConverter):
@converts('Geometry')
@converts('Geography', 'Geometry')
def convert_geom(self, column, field_args, **extra):
field_args['geometry_type'] = column.type.geometry_type
field_args['srid'] = column.type.srid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment