1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[3.1.x] Fixed #31877 -- Reverted "Fixed #19878 -- Deprecated TemplateView passing URL kwargs into context."

This reverts commit 4ed534758c.

Backport of bb8f66934d from master
This commit is contained in:
Mariusz Felisiak
2020-08-24 09:00:12 +02:00
parent f247c66bb5
commit e81aa7a94a
7 changed files with 33 additions and 84 deletions

View File

@@ -12,10 +12,7 @@ urlpatterns = [
path('template/no_template/', TemplateView.as_view()),
path('template/login_required/', login_required(TemplateView.as_view())),
path('template/simple/<foo>/', TemplateView.as_view(template_name='generic_views/about.html')),
path(
'template/custom/<foo1>/<foo2>/',
views.CustomTemplateView.as_view(template_name='generic_views/about.html'),
),
path('template/custom/<foo>/', views.CustomTemplateView.as_view(template_name='generic_views/about.html')),
path(
'template/content_type/',
TemplateView.as_view(template_name='generic_views/robots.txt', content_type='text/plain'),