diff --git a/tests/shortcuts/urls.py b/tests/shortcuts/urls.py index d3d68e3b29..e24ee9314c 100644 --- a/tests/shortcuts/urls.py +++ b/tests/shortcuts/urls.py @@ -8,7 +8,6 @@ urlpatterns = [ url(r'^render_to_response/content_type/$', views.render_to_response_view_with_content_type), url(r'^render_to_response/status/$', views.render_to_response_view_with_status), url(r'^render_to_response/using/$', views.render_to_response_view_with_using), - url(r'^render_to_response/context_instance_misuse/$', views.render_to_response_with_context_instance_misuse), url(r'^render/$', views.render_view), url(r'^render/multiple_templates/$', views.render_view_with_multiple_templates), url(r'^render/content_type/$', views.render_view_with_content_type), diff --git a/tests/shortcuts/views.py b/tests/shortcuts/views.py index edacb23938..6914a5e395 100644 --- a/tests/shortcuts/views.py +++ b/tests/shortcuts/views.py @@ -1,5 +1,4 @@ from django.shortcuts import render, render_to_response -from django.template import RequestContext def render_to_response_view(request): @@ -42,12 +41,6 @@ def context_processor(request): return {'bar': 'context processor output'} -def render_to_response_with_context_instance_misuse(request): - context_instance = RequestContext(request, {}, processors=[context_processor]) - # Incorrect -- context_instance should be passed as a keyword argument. - return render_to_response('shortcuts/render_test.html', context_instance) - - def render_view(request): return render(request, 'shortcuts/render_test.html', { 'foo': 'FOO',