Merge pull request #4942 from bhushan-mohanraj/patch-2

Clarify the docstring for `View.as_view`.
This commit is contained in:
David Lord 2023-01-09 11:11:02 -08:00 committed by GitHub
commit 8bfc0581e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,8 +92,8 @@ class View:
:attr:`init_every_request` to ``False``, the same instance will
be used for every request.
The arguments passed to this method are forwarded to the view
class ``__init__`` method.
Except for ``name``, all other arguments passed to this method
are forwarded to the view class ``__init__`` method.
.. versionchanged:: 2.2
Added the ``init_every_request`` class attribute.