if self.show_toolbar(request):
toolbar = DebugToolbar(request)
for panel in toolbar.panels:
panel.enabled = panel.dom_id() not in request.COOKIESif not panel.enabled:
continue
panel.enable_instrumentation()
panel.process_request(request)
self.__class__.debug_toolbars[threading.current_thread().ident] = toolbar
After Change
panel.enable_instrumentation()
for panel in toolbar.enabled_panels:
response = panel.process_request(request)
if response:
break
self.__class__.debug_toolbars[threading.current_thread().ident] = toolbar
return response
def process_view(self, request, view_func, view_args, view_kwargs):