summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2012-11-22 09:07:21 -0500
committerTim Graham <timograham@gmail.com>2012-11-22 09:08:37 -0500
commit63546533c1fd7cfe003140bbe15a7d465aa787eb (patch)
tree3f23461ef654f438bf8d13f0debcc193765956d9 /docs/ref
parent74e22f97725d4c85564c9d5210d8cdc19b19520d (diff)
[1.5.X] Clarified usage of as_view kwargs for setting arguments on class based views
Thanks Dave McLain for the patch. Backport of 7b2d95eb30 from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/class-based-views/index.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/ref/class-based-views/index.txt b/docs/ref/class-based-views/index.txt
index c4b632604a..a027953416 100644
--- a/docs/ref/class-based-views/index.txt
+++ b/docs/ref/class-based-views/index.txt
@@ -37,10 +37,11 @@ A class-based view is deployed into a URL pattern using the
is modified, the actions of one user visiting your view could have an
effect on subsequent users visiting the same view.
-Any argument passed into :meth:`~django.views.generic.base.View.as_view()` will
+Arguments passed into :meth:`~django.views.generic.base.View.as_view()` will
be assigned onto the instance that is used to service a request. Using the
previous example, this means that every request on ``MyView`` is able to use
-``self.size``.
+``self.size``. Arguments must correspond to attributes that already exist on
+the class (return ``True`` on a ``hasattr`` check).
Base vs Generic views
---------------------