diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt
index 3f82b44..3e869f7 100644
a
|
b
|
View
|
18 | 18 | |
19 | 19 | **Method Flowchart** |
20 | 20 | |
21 | | 1. :meth:`dispatch()` |
22 | | 2. :meth:`http_method_not_allowed()` |
| 21 | 1. :meth:`as_view()` |
| 22 | 2. :meth:`dispatch()` |
| 23 | 3. :meth:`http_method_not_allowed()` |
23 | 24 | |
24 | 25 | **Example views.py**:: |
25 | 26 | |
… |
… |
View
|
43 | 44 | |
44 | 45 | **Methods** |
45 | 46 | |
| 47 | .. method:: as_view(**initkwargs) |
| 48 | |
| 49 | Returns a callable view that takes a request and returns a response:: |
| 50 | |
| 51 | response = MyView.as_view(request) |
| 52 | |
46 | 53 | .. method:: dispatch(request, *args, **kwargs) |
47 | 54 | |
48 | 55 | The ``view`` part of the view -- the method that accepts a ``request`` |
diff --git a/docs/ref/class-based-views/index.txt b/docs/ref/class-based-views/index.txt
index f0e7bbc..c4b6326 100644
a
|
b
|
it is safe to store state variables on the instance (i.e., ``self.foo = 3`` is
|
23 | 23 | a thread-safe operation). |
24 | 24 | |
25 | 25 | A class-based view is deployed into a URL pattern using the |
26 | | :meth:`~View.as_view()` classmethod:: |
| 26 | :meth:`~django.views.generic.base.View.as_view()` classmethod:: |
27 | 27 | |
28 | 28 | urlpatterns = patterns('', |
29 | 29 | (r'^view/$', MyView.as_view(size=42)), |
… |
… |
A class-based view is deployed into a URL pattern using the
|
37 | 37 | is modified, the actions of one user visiting your view could have an |
38 | 38 | effect on subsequent users visiting the same view. |
39 | 39 | |
40 | | Any argument passed into :meth:`~View.as_view()` will be assigned onto the |
41 | | instance that is used to service a request. Using the previous example, |
42 | | this means that every request on ``MyView`` is able to use ``self.size``. |
| 40 | Any argument passed into :meth:`~django.views.generic.base.View.as_view()` will |
| 41 | be assigned onto the instance that is used to service a request. Using the |
| 42 | previous example, this means that every request on ``MyView`` is able to use |
| 43 | ``self.size``. |
43 | 44 | |
44 | 45 | Base vs Generic views |
45 | 46 | --------------------- |