Commit 0f555f81 authored by Preston Holmes's avatar Preston Holmes
Browse files

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

parent 3872bc51
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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``