We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bad48b2 commit 2ebf47dCopy full SHA for 2ebf47d
debug_toolbar/middleware.py
@@ -45,10 +45,9 @@ def __init__(self, get_response):
45
self.get_response = get_response
46
47
def __call__(self, request):
48
- # Decide whether the toolbar is active for this request. Don't render
49
- # the toolbar during AJAX requests.
+ # Decide whether the toolbar is active for this request.
50
show_toolbar = get_show_toolbar()
51
- if not show_toolbar(request) or request.is_ajax():
+ if not show_toolbar(request):
52
return self.get_response(request)
53
54
toolbar = DebugToolbar(request, self.get_response)
0 commit comments