Skip to content

Commit 226a89e

Browse files
committed
Merge branch 'master' of github.com:django-debug-toolbar/django-debug-toolbar
2 parents 73af56d + a492b17 commit 226a89e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/middleware.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def process_response(self, request, response):
116116
__traceback_hide__ = True
117117
ident = thread.get_ident()
118118
toolbar = self.__class__.debug_toolbars.get(ident)
119-
if not toolbar:
119+
if not toolbar or request.is_ajax():
120120
return response
121121
if isinstance(response, HttpResponseRedirect):
122122
if not toolbar.config['INTERCEPT_REDIRECTS']:

0 commit comments

Comments
 (0)