From 0f555f813b1bc3995d19160be17c8b2cb6a440c1 Mon Sep 17 00:00:00 2001 From: Preston Holmes Date: Sat, 23 Feb 2013 19:25:00 -0800 Subject: [PATCH] [1.4.x] Fixed #19902 -- backport of as_view docs --- docs/ref/class-based-views.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/ref/class-based-views.txt b/docs/ref/class-based-views.txt index 5223aee018..5869a1eda3 100644 --- a/docs/ref/class-based-views.txt +++ b/docs/ref/class-based-views.txt @@ -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``