Skip to content

Temporary solution for problems with dual View call for ProfilingDebugPanel #290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Temporary solution for problems with dual View call for ProfilingDebu…
…gPanel
  • Loading branch information
adw0rd committed Jun 17, 2012
commit c9d3f34757e6a926dab9b37f33df36c1755ee05c
6 changes: 5 additions & 1 deletion debug_toolbar/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,12 @@ def process_view(self, request, view_func, view_args, view_kwargs):
toolbar = self.__class__.debug_toolbars.get(thread.get_ident())
if not toolbar:
return
result = None
for panel in toolbar.panels:
panel.process_view(request, view_func, view_args, view_kwargs)
response = panel.process_view(request, view_func, view_args, view_kwargs)
if response:
result = response
return result

def process_response(self, request, response):
__traceback_hide__ = True
Expand Down