Commit 9933e6e3 authored by Dmitry Medvinsky's avatar Dmitry Medvinsky

Fix missing FileAdmin class initialization

In the FileAdmin code example the admin view wasn't really created, its arguments were passed directly to the `admin.add_view` function.
parent baee2375
......@@ -278,7 +278,7 @@ Here is simple example::
admin = Admin(app)
path = op.join(op.dirname(__file__), 'static')
admin.add_view(path, '/static/', name='Static Files')
admin.add_view(FileAdmin(path, '/static/', name='Static Files'))
Sample screenshot:
......
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