Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 0f555f813b1bc3995d19160be17c8b2cb6a440c1 1 parent 3872bc5
Preston Holmes ptone authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 docs/ref/class-based-views.txt
6 docs/ref/class-based-views.txt
View
@@ -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``
Please sign in to comment.
Something went wrong with that request. Please try again.