From bcf58e3e705cf0feaf29768a3539b241d8f12ec8 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Thu, 13 Feb 2020 16:01:43 +0100 Subject: [PATCH] [3.0.x] Fixed #31270 -- Doc'd RedirectView.get_redirect_url() arguments. Backport of 2ab97af3528352e8f3ea4aa725b863822442d5ed from master --- docs/ref/class-based-views/base.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt index 85e3c8bd4b..e5a3ca1963 100644 --- a/docs/ref/class-based-views/base.txt +++ b/docs/ref/class-based-views/base.txt @@ -265,6 +265,10 @@ MRO is an acronym for Method Resolution Order. Constructs the target URL for redirection. + The ``args`` and ``kwargs`` arguments are positional and/or keyword + arguments :ref:`captured from the URL pattern + `, respectively. + The default implementation uses :attr:`url` as a starting string and performs expansion of ``%`` named parameters in that string using the named groups captured in the URL.