mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.6.x] Fixed #22092 -- Documented ResolverMatch.view_name
Backport of 271929dd9d3aa5184cbb13d79b3651ac32e640ea from master.
This commit is contained in:
parent
79cc1fa58d
commit
882f2a5b81
@ -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
|
i.e., if the namespace is ``foo:bar``, then namespaces will be
|
||||||
``['foo', 'bar']``.
|
``['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
|
A :class:`ResolverMatch` object can then be interrogated to provide
|
||||||
information about the URL pattern that matches a URL::
|
information about the URL pattern that matches a URL::
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user