Commit 2e8f8486 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #726 from singingwolfboy/geoa-modelview-doc

Clarify docs re: geoa ModelView
parents f52b66bb c796ca0d
...@@ -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