Browse files

Fix code example in pluggable views documentation

  • Loading branch information...
1 parent 43f4120 commit 11c746189dd8b49740a833d0e8428a85b6174799 @mgax mgax committed Aug 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/views.rst
View
2 docs/views.rst
@@ -36,7 +36,7 @@ based view you would do this::
users = User.query.all()
return render_template('users.html', objects=users)
- app.add_url_rule('/users/', ShowUsers.as_view('show_users'))
+ app.add_url_rule('/users/', view_func=ShowUsers.as_view('show_users'))
As you can see what you have to do is to create a subclass of
:class:`flask.views.View` and implement

0 comments on commit 11c7461

Please sign in to comment.