From 4ed534758cb6a11df9f49baddecca5a6cdda9311 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 15 Aug 2019 06:48:33 +0100 Subject: Fixed #19878 -- Deprecated TemplateView passing URL kwargs into context. --- docs/ref/class-based-views/base.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt index 7906c56846..de45ae3a5e 100644 --- a/docs/ref/class-based-views/base.txt +++ b/docs/ref/class-based-views/base.txt @@ -117,8 +117,7 @@ MRO is an acronym for Method Resolution Order. .. class:: django.views.generic.base.TemplateView - Renders a given template, with the context containing parameters captured - in the URL. + Renders a given template. **Ancestors (MRO)** @@ -162,12 +161,17 @@ MRO is an acronym for Method Resolution Order. **Context** - * Populated (through :class:`~django.views.generic.base.ContextMixin`) with - the keyword arguments captured from the URL pattern that served the view. + * Populated (through :class:`~django.views.generic.base.ContextMixin`). * 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`` ================ -- cgit v1.3