1
0
mirror of https://github.com/django/django.git synced 2025-01-07 00:46:08 +00:00

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

This commit is contained in:
Chaitanya Rahalkar 2024-12-19 14:04:04 -06:00 committed by Sarah Boyce
parent 083e623953
commit d97cacc2ae

View File

@ -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)