Guest User

Untitled

a guest
Jul 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. from flask.ext.admin.contrib.sqla import ModelView
  2.  
  3. # 'location' is the GeoAlchemy2 column
  4. class FeatureView(ModelView):
  5. ...
  6. form_overrides = dict(location=WTFormsMapField)
  7. form_args = dict(
  8. location=dict(
  9. geometry_type='Polygon', height=500, width=500, cloudmade_api="{your_api}"
  10. )
  11. )
  12. ...
Add Comment
Please, Sign In to add comment