From 882f2a5b811ad6b528556bef0e31a37710baff94 Mon Sep 17 00:00:00 2001 From: Jochem Oosterveen Date: Sat, 22 Feb 2014 16:25:49 +0100 Subject: [PATCH] [1.6.x] Fixed #22092 -- Documented ResolverMatch.view_name Backport of 271929dd9d3aa5184cbb13d79b3651ac32e640ea from master. --- docs/ref/urlresolvers.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/ref/urlresolvers.txt b/docs/ref/urlresolvers.txt index 7de63c38f9..3467319d2f 100644 --- a/docs/ref/urlresolvers.txt +++ b/docs/ref/urlresolvers.txt @@ -146,6 +146,11 @@ If the URL does not resolve, the function raises a i.e., if the namespace is ``foo:bar``, then namespaces will be ``['foo', 'bar']``. + .. attribute:: ResolverMatch.view_name + + The name of the view that matches the URL, including the namespace if + there is one. + A :class:`ResolverMatch` object can then be interrogated to provide information about the URL pattern that matches a URL::