[1.4.x] Fixed #19902 -- backport of as_view docs

This commit is contained in:
Preston Holmes 2013-02-23 19:25:00 -08:00
parent 3872bc51c9
commit 0f555f813b

View File

@ -862,6 +862,12 @@ View
one user visiting your view could have an effect on subsequent users
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)
The ``view`` part of the view -- the method that accepts a ``request``