[1.4.x] Fixed #19902 -- backport of as_view docs
This commit is contained in:
parent
3872bc51c9
commit
0f555f813b
@ -862,6 +862,12 @@ View
|
|||||||
one user visiting your view could have an effect on subsequent users
|
one user visiting your view could have an effect on subsequent users
|
||||||
visiting the same view.
|
visiting the same view.
|
||||||
|
|
||||||
|
.. classmethod:: as_view(**initkwargs)
|
||||||
|
|
||||||
|
Returns a callable view that takes a request and returns a response::
|
||||||
|
|
||||||
|
response = MyView.as_view()(request)
|
||||||
|
|
||||||
.. method:: dispatch(request, *args, **kwargs)
|
.. method:: dispatch(request, *args, **kwargs)
|
||||||
|
|
||||||
The ``view`` part of the view -- the method that accepts a ``request``
|
The ``view`` part of the view -- the method that accepts a ``request``
|
||||||
|
Loading…
x
Reference in New Issue
Block a user