aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannis Leidel2012-08-27 12:54:50 +0200
committerJannis Leidel2012-08-27 12:54:50 +0200
commit226a89e2ede261b8a8129fd7cf0392e83d47f8d3 (patch)
treed9be1eb8e7de1f69dc2929ecfcdb379085b66fd6
parent73af56da5ff2d1bba47387cc650ea16c88fbffc0 (diff)
parenta492b1746d4a8e58a24b8b5c179dc8147ab57c9c (diff)
downloaddjango-debug-toolbar-226a89e2ede261b8a8129fd7cf0392e83d47f8d3.tar.bz2
Merge branch 'master' of github.com:django-debug-toolbar/django-debug-toolbar
-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 6e86223..1979e1d 100644
--- a/debug_toolbar/middleware.py
+++ b/debug_toolbar/middleware.py
@@ -116,7 +116,7 @@ class DebugToolbarMiddleware(object):
__traceback_hide__ = True
ident = thread.get_ident()
toolbar = self.__class__.debug_toolbars.get(ident)
- if not toolbar:
+ if not toolbar or request.is_ajax():
return response
if isinstance(response, HttpResponseRedirect):
if not toolbar.config['INTERCEPT_REDIRECTS']: