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