Преглед на файлове

Fixed #36026 -- Clarified that View.setup() sets the request, args, kwargs attributes.

Chaitanya Rahalkar преди 3 месеца
родител
ревизия
d97cacc2ae
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      docs/ref/class-based-views/base.txt

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

@@ -87,6 +87,11 @@ MRO is an acronym for Method Resolution Order.
 
         Performs key view initialization prior to :meth:`dispatch`.
 
+        Assigns the :class:`~django.http.HttpRequest` to the view's ``request``
+        attribute, and any positional and/or keyword arguments
+        :ref:`captured from the URL pattern <how-django-processes-a-request>`
+        to the ``args`` and ``kwargs`` attributes, respectively.
+
         If overriding this method, you must call ``super()``.
 
     .. method:: dispatch(request, *args, **kwargs)