mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #36026 -- Clarified that View.setup() sets the request, args, kwargs attributes.
This commit is contained in:
parent
083e623953
commit
d97cacc2ae
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue