Commit 9207bdc6 authored by Serge S. Koval's avatar Serge S. Koval

Fixed mongoengine boolean filter. Fixes #238

parent 6c62d45d
......@@ -66,6 +66,10 @@ class UserView(ModelView):
column_searchable_list = ('name', 'password')
class TodoView(ModelView):
column_filters = ['done']
# Flask views
@app.route('/')
def index():
......@@ -78,7 +82,7 @@ if __name__ == '__main__':
# Add views
admin.add_view(UserView(User))
admin.add_view(ModelView(Todo))
admin.add_view(TodoView(Todo))
admin.add_view(ModelView(Tag))
admin.add_view(ModelView(Post))
......
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