summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorChaitanya Rahalkar <chaitanyarahalkar4@gmail.com>2024-12-19 14:04:04 -0600
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-01-03 14:11:23 +0100
commitd97cacc2aedf948f7c557d0231e3b410905678b2 (patch)
tree48f8eb921d39a1ed5eaca58f9866dde7320036c8 /docs/ref
parent083e6239538cbc34ae9781c2e70a8a8dbfcf2817 (diff)
Fixed #36026 -- Clarified that View.setup() sets the request, args, kwargs attributes.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/class-based-views/base.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt
index b1260093c1..7f0212b757 100644
--- a/docs/ref/class-based-views/base.txt
+++ b/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)