<s> from flask . ext . admin . model . form import converts <EOL> from flask . ext . admin . contrib . sqla . form import AdminModelConverter as SQLAAdminConverter <EOL> from . fields import GeoJSONField <EOL> class AdminModelConverter ( SQLAAdminConverter ) : <EOL> @ converts ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def convert_geom ( self , column , field_args , ** extra ) : <EOL> field_args [ '<STR_LIT>' ] = column . type . geometry_type <EOL> field_args [ '<STR_LIT>' ] = column . type . srid <EOL> field_args [ '<STR_LIT>' ] = self . session <EOL> return GeoJSONField ( ** field_args ) </s>
