From d97cacc2aedf948f7c557d0231e3b410905678b2 Mon Sep 17 00:00:00 2001 From: Chaitanya Rahalkar Date: Thu, 19 Dec 2024 14:04:04 -0600 Subject: [PATCH] Fixed #36026 -- Clarified that View.setup() sets the request, args, kwargs attributes. --- docs/ref/class-based-views/base.txt | 5 +++++ 1 file changed, 5 insertions(+) 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 ` + to the ``args`` and ``kwargs`` attributes, respectively. + If overriding this method, you must call ``super()``. .. method:: dispatch(request, *args, **kwargs)