Skip to content

Commit dcf7813

Browse files
jezdezrobhudson
authored andcommitted
Fixed #68 - Make sure to only bail because of AJAX requests coming from apps other than ddt.
1 parent 55b5a77 commit dcf7813

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

debug_toolbar/middleware.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ def _show_toolbar(self, request):
5858
else:
5959
remote_addr = request.META.get('REMOTE_ADDR', None)
6060
if not remote_addr in settings.INTERNAL_IPS \
61-
or request.is_ajax() or not settings.DEBUG:
61+
or (request.is_ajax() and \
62+
not debug_toolbar.urls._PREFIX in request.path) \
63+
or not settings.DEBUG:
6264
return False
6365
return True
6466

0 commit comments

Comments
 (0)