Commit 882f2a5b authored by Jochem Oosterveen's avatar Jochem Oosterveen Committed by Baptiste Mispelon
Browse files

[1.6.x] Fixed #22092 -- Documented ResolverMatch.view_name

Backport of 271929dd from master.
parent 79cc1fa5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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::