diff options
| author | Mike Vasiliou <mvasiliou94@gmail.com> | 2017-06-25 14:17:12 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-28 10:01:20 -0400 |
| commit | a6756195c1a11eee10c16c96fe95d52e22e1d9ba (patch) | |
| tree | 6f74c2737990d182795b4b7bd8cd96c13a5ba6e5 /docs | |
| parent | a84b555eb5530c9276bcf3531c0d39669c0c5084 (diff) | |
[1.11.x] Fixed #28294 -- Doc'd request/args/kwargs attributes of class-based views.
Backport of 63e9a71ec4917ddf7f4acbf69a7ccdafb76fb2ee from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/class-based-views/base.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt index 80904ef76f..0f77bad878 100644 --- a/docs/ref/class-based-views/base.txt +++ b/docs/ref/class-based-views/base.txt @@ -73,6 +73,13 @@ MRO is an acronym for Method Resolution Order. The returned view has ``view_class`` and ``view_initkwargs`` attributes. + When the view is called during the request/response cycle, the + :class:`~django.http.HttpRequest` is assigned to the view's ``request`` + attribute. Any positional and/or keyword arguments :ref:`captured from + the URL pattern <how-django-processes-a-request>` are assigned to the + ``args`` and ``kwargs`` attributes, respectively. Then :meth:`dispatch` + is called. + .. method:: dispatch(request, *args, **kwargs) The ``view`` part of the view -- the method that accepts a ``request`` |
