summaryrefslogtreecommitdiff
path: root/docs/topics/class-based-views
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:26:32 -0400
commitf2ff1b2fabbe26d5e61d690c4c5a47f9582f9300 (patch)
tree6ad36a632acc9f5b47e4b6956efa1edb1d17c84a /docs/topics/class-based-views
parenta44fc008c4e38fadef04021fdba564949f1aee3a (diff)
Fixed #27289 -- Corrected View.as_view() explanation.
Thanks Graham Wideman for the report.
Diffstat (limited to 'docs/topics/class-based-views')
-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 d3ffb894fb..70852ee1e0 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