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:
parent
083e623953
commit
d97cacc2ae
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user