diff options
| author | Florian Apolloner <florian@apolloner.eu> | 2012-09-27 15:06:58 +0200 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2012-09-27 15:06:58 +0200 |
| commit | b946db5241b924c72c1079ce30d9b368e2b82f07 (patch) | |
| tree | ee264b4ad58ceebe5ea3e248fd9b22797909b6e6 /docs | |
| parent | 44767f2caf028d89e1a283d04bb552d0e18bb936 (diff) | |
Fixed #15695 -- Added `ResolverMatch` to the request object.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/request-response.txt | 11 | ||||
| -rw-r--r-- | docs/releases/1.5.txt | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 21e99de10d..50301b8567 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -192,6 +192,17 @@ All attributes should be considered read-only, unless stated otherwise below. URLconf for the current request, overriding the :setting:`ROOT_URLCONF` setting. See :ref:`how-django-processes-a-request` for details. +.. attribute:: HttpRequest.resolver_match + + .. versionadded:: 1.5 + + An instance of :class:`~django.core.urlresolvers.ResolverMatch` representing + the resolved url. This attribute is only set after url resolving took place, + which means it's available in all views but not in middleware methods which + are executed before url resolving takes place (like ``process_request``, you + can use ``process_view`` instead). + + Methods ------- diff --git a/docs/releases/1.5.txt b/docs/releases/1.5.txt index 26b6ad1bfa..f1fcd923b1 100644 --- a/docs/releases/1.5.txt +++ b/docs/releases/1.5.txt @@ -127,6 +127,9 @@ Django 1.5 also includes several smaller improvements worth noting: configuration duplication. More information can be found in the :func:`~django.contrib.auth.decorators.login_required` documentation. +* An instance of :class:`~django.core.urlresolvers.ResolverMatch` is stored on + the request as ``resolver_match``. + Backwards incompatible changes in 1.5 ===================================== |
