Skip to content

Commit

Permalink
Don't run context processors for redirect template.
Browse files Browse the repository at this point in the history
  • Loading branch information
living180 authored and catalanojuan committed Apr 15, 2014
1 parent f8fa4a5 commit da95140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debug_toolbar/panels/redirects.py
@@ -1,7 +1,7 @@
from __future__ import absolute_import, unicode_literals

from django.core.handlers.wsgi import STATUS_CODE_TEXT
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.utils.translation import ugettext_lazy as _

from debug_toolbar.panels import Panel
Expand All @@ -28,6 +28,6 @@ def process_response(self, request, response):
status_line = '%s %s' % (response.status_code, reason_phrase)
cookies = response.cookies
context = {'redirect_to': redirect_to, 'status_line': status_line}
response = render(request, 'debug_toolbar/redirect.html', context)
response = render_to_response('debug_toolbar/redirect.html', context)
response.cookies = cookies
return response

0 comments on commit da95140

Please sign in to comment.