From ae93aeed2b87c4a6dd9290146aaee5dc57d07bfb Mon Sep 17 00:00:00 2001 From: Marten Kenbeek Date: Thu, 25 Jun 2015 19:22:58 +0200 Subject: [PATCH] [1.8.x] Refs #24127 -- Added documentation for HttpRequest.current_app. Backport of 6364df68879efc0d9451d6427e34b4542e3d7e0b from master --- docs/ref/request-response.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 44f5b9c65c..6dd877efe4 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -209,6 +209,13 @@ All attributes should be considered read-only, unless stated otherwise below. are executed before url resolving takes place (like ``process_request``, you can use ``process_view`` instead). +.. attribute:: HttpRequest.current_app + + .. versionadded:: 1.8 + + Not defined by Django itself, but if set, the :ttag:`url` template tag + will use its value as the ``current_app`` argument to + :func:`~django.core.urlresolvers.reverse()`. Methods -------