diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-08-24 09:00:12 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-08-24 11:37:59 +0200 |
| commit | bb8f66934d93faf80cd1a2dda65aaedce21a6fc5 (patch) | |
| tree | a5f799b61d7335b561ae2eae5128e0e417bc8824 /docs/ref/class-based-views | |
| parent | 04e87e79a0bd2b1b9fdc30f884a637a3268733f0 (diff) | |
Fixed #31877 -- Reverted "Fixed #19878 -- Deprecated TemplateView passing URL kwargs into context."
This reverts commit 4ed534758cb6a11df9f49baddecca5a6cdda9311.
Diffstat (limited to 'docs/ref/class-based-views')
| -rw-r--r-- | docs/ref/class-based-views/base.txt | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt index de45ae3a5e..7906c56846 100644 --- a/docs/ref/class-based-views/base.txt +++ b/docs/ref/class-based-views/base.txt @@ -117,7 +117,8 @@ MRO is an acronym for Method Resolution Order. .. class:: django.views.generic.base.TemplateView - Renders a given template. + Renders a given template, with the context containing parameters captured + in the URL. **Ancestors (MRO)** @@ -161,17 +162,12 @@ MRO is an acronym for Method Resolution Order. **Context** - * Populated (through :class:`~django.views.generic.base.ContextMixin`). + * Populated (through :class:`~django.views.generic.base.ContextMixin`) with + the keyword arguments captured from the URL pattern that served the view. * You can also add context using the :attr:`~django.views.generic.base.ContextMixin.extra_context` keyword argument for :meth:`~django.views.generic.base.View.as_view`. - .. deprecated:: 3.1 - - Starting in Django 4.0, the keyword arguments captured from the URL - pattern won't be passed to the context. Reference them with - ``view.kwargs`` instead. - ``RedirectView`` ================ |
