Commit 58789da1 authored by Serge S. Koval's avatar Serge S. Koval

Merge branch 'master' of github.com:mrjoes/flask-admin

parents 815ee576 2e8f8486
...@@ -45,6 +45,7 @@ use this field rather that the one that ships with GeoAlchemy when defining your ...@@ -45,6 +45,7 @@ use this field rather that the one that ships with GeoAlchemy when defining your
models:: models::
from flask.ext.admin.contrib.geoa.sqltypes import Geometry from flask.ext.admin.contrib.geoa.sqltypes import Geometry
from flask.ext.admin.contrib.geoa import ModelView
# .. flask initialization # .. flask initialization
db = SQLAlchemy(app) db = SQLAlchemy(app)
...@@ -61,6 +62,9 @@ models:: ...@@ -61,6 +62,9 @@ models::
db.create_all() db.create_all()
app.run('0.0.0.0', 8000) app.run('0.0.0.0', 8000)
Note that you also have to use the ``ModelView`` class imported from ``geoa``,
rather than the one imported from ``sqla``.
Limitations Limitations
----------- -----------
......
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