1
0
mirror of https://github.com/django/django.git synced 2025-10-30 09:06:13 +00:00

Fixed #31877 -- Reverted "Fixed #19878 -- Deprecated TemplateView passing URL kwargs into context."

This reverts commit 4ed534758c.
This commit is contained in:
Mariusz Felisiak
2020-08-24 09:00:12 +02:00
parent 04e87e79a0
commit bb8f66934d
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'),