toolbar = DebugToolbar(request)
for panel in toolbar.panels:
panel.enabled = panel.dom_id() not in request.COOKIES
if not panel.enabled:
continue
panel.enable_instrumentation()
panel.process_request(request)
self.__class__.debug_toolbars[threading.current_thread().ident] = toolbar
After Change
def process_request(self, request):
__traceback_hide__ = True // noqa
if not self.show_toolbar(request):
return
response = None
toolbar = DebugToolbar(request)
for panel in toolbar.enabled_panels:
panel.enable_instrumentation()
for panel in toolbar.enabled_panels: