Skip to content

Commit

Permalink
Merge pull request pallets-eco#1157 from c-bata/modify-sample-code-at…
Browse files Browse the repository at this point in the history
…-intro

Fix a sample code at introduction
  • Loading branch information
pawl committed Dec 25, 2015
2 parents 572f1d3 + 0f2fa4d commit 35963bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ example, to add a page that displays some analytics data from a 3rd-party API::
def index(self):
return self.render('analytics_index.html')

admin.add_view(CustomView(name='Analytics', endpoint='analytics'))
admin.add_view(AnalyticsView(name='Analytics', endpoint='analytics'))

This will add a link to the navbar for your view. Notice that
it is served at '/', the root URL. This is a restriction on standalone views: at
Expand Down

0 comments on commit 35963bc

Please sign in to comment.