Commit c8131d72 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #757 from chrismurf/patch-1

Add Geography Type to GeoAlchemy Backend
parents ba4e10ce 45fb0157
......@@ -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