summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-09-28 10:58:56 -0400
committerTim Graham <timograham@gmail.com>2016-09-28 11:49:49 -0400
commit131098b9c7c179a29284fa8a24df209da4068c99 (patch)
tree86eec54c8607f495ee2792a9a7d221d5faf6e5ec /docs
parent63af78bbe01347539d311e7179d7744993d76bb6 (diff)
[1.10.x] Fixed #27289 -- Corrected View.as_view() explanation.
Thanks Graham Wideman for the report. Backport of f2ff1b2fabbe26d5e61d690c4c5a47f9582f9300 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/class-based-views/intro.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/topics/class-based-views/intro.txt b/docs/topics/class-based-views/intro.txt
index c22ace93e5..af29221dcf 100644
--- a/docs/topics/class-based-views/intro.txt
+++ b/docs/topics/class-based-views/intro.txt
@@ -80,9 +80,9 @@ In a class-based view, this would become::
Because Django's URL resolver expects to send the request and associated
arguments to a callable function, not a class, class-based views have an
-:meth:`~django.views.generic.base.View.as_view` class method which serves as
-the callable entry point to your class. The ``as_view`` entry point creates an
-instance of your class and calls its
+:meth:`~django.views.generic.base.View.as_view` class method which returns a
+function that can be called when a request arrives for a URL matching the
+associated pattern. The function creates an instance of the class and calls its
:meth:`~django.views.generic.base.View.dispatch` method. ``dispatch`` looks at
the request to determine whether it is a ``GET``, ``POST``, etc, and relays the
request to a matching method if one is defined, or raises