Commit c7015228 authored by Bruno Rocha's avatar Bruno Rocha

small changes in tinymongo example

parent 7e5223ee
...@@ -20,6 +20,9 @@ app.config['SECRET_KEY'] = '123456790' ...@@ -20,6 +20,9 @@ app.config['SECRET_KEY'] = '123456790'
conn = TinyMongoClient('/tmp/flask_admin_test') conn = TinyMongoClient('/tmp/flask_admin_test')
db = conn.test db = conn.test
# create some users for testing
# for i in range(30):
# db.user.insert({'name': 'Mike %s' % i})
# User admin # User admin
class InnerForm(form.Form): class InnerForm(form.Form):
...@@ -46,6 +49,8 @@ class UserView(ModelView): ...@@ -46,6 +49,8 @@ class UserView(ModelView):
form = UserForm form = UserForm
page_size = 20
can_set_page_size = True
# Tweet view # Tweet view
class TweetForm(form.Form): class TweetForm(form.Form):
......
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