aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/middleware.py
diff options
context:
space:
mode:
authorVladislav Poluhin2013-04-24 15:54:17 +0800
committerVladislav Poluhin2013-04-24 15:54:17 +0800
commit4c1c4f7a8873a80f843ba683240b9d0ff0f49e4b (patch)
tree4840de7ec2ec41d1ef7cc362803c2d0ace58d663 /debug_toolbar/middleware.py
parent3d0467d9a4394c4b994a802e6e861ff2562dbb2b (diff)
parent6f79f0b0ada69e1d95d97066ba78e0d18aeab3ba (diff)
downloaddjango-debug-toolbar-4c1c4f7a8873a80f843ba683240b9d0ff0f49e4b.tar.bz2
Merge branch 'master' of https://github.com/django-debug-toolbar/django-debug-toolbar into sql-panel-refactor
Conflicts: debug_toolbar/static/debug_toolbar/css/toolbar.min.css debug_toolbar/views.py
Diffstat (limited to 'debug_toolbar/middleware.py')
-rw-r--r--debug_toolbar/middleware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py
index 1979e1d..2c36a19 100644
--- a/debug_toolbar/middleware.py
+++ b/debug_toolbar/middleware.py
@@ -119,7 +119,7 @@ class DebugToolbarMiddleware(object):
if not toolbar or request.is_ajax():
return response
if isinstance(response, HttpResponseRedirect):
- if not toolbar.config['INTERCEPT_REDIRECTS']:
+ if not toolbar.config['INTERCEPT_REDIRECTS'] or request.is_ajax():
return response
redirect_to = response.get('Location', None)
if redirect_to: