Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix code example in pluggable views documentation

  • Loading branch information...
commit 11c746189dd8b49740a833d0e8428a85b6174799 1 parent 43f4120
Alex Morega mgax authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/views.rst
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
Please sign in to comment.
Something went wrong with that request. Please try again.