summaryrefslogtreecommitdiff
path: root/docs/narr/hooks.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/narr/hooks.rst')
-rw-r--r--docs/narr/hooks.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst
index d21edc7b4..63279027a 100644
--- a/docs/narr/hooks.rst
+++ b/docs/narr/hooks.rst
@@ -160,7 +160,7 @@ forbidden view:
def main(globals, **settings):
config = Configurator()
- config.add_forbidden_view(forbidden_view)
+ config.add_forbidden_view(forbidden)
If instead you prefer to use decorators and a :term:`scan`, you can use the
:class:`pyramid.view.forbidden_view_config` decorator to mark a view callable