summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/urldispatch.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst
index 91063fc26..f62a682c9 100644
--- a/docs/narr/urldispatch.rst
+++ b/docs/narr/urldispatch.rst
@@ -91,7 +91,15 @@ view
The Python dotted-path name to a function that will be used as a
view callable when this route matches.
- e.g. ``mypackage.views.my_view``. This attribute is required.
+ e.g. ``mypackage.views.my_view``.
+
+view_for
+
+ The Python dotted-path name to a class or an interface that the
+ :term:`context` of the view should match for the view named by the
+ route to be used. This attribute is only useful if the ``view``
+ attribute is used. If this attribute is not specified, the default
+ (``None``) will be used.
permission