Procházet zdrojové kódy

Fixed #31270 -- Doc'd RedirectView.get_redirect_url() arguments.

Hasan Ramezani před 5 roky
rodič
revize
2ab97af352
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      docs/ref/class-based-views/base.txt

+ 4 - 0
docs/ref/class-based-views/base.txt

@@ -260,6 +260,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
+        <how-django-processes-a-request>`, 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.