From 5811b92e6e333f2102b83582d948cce02321e615 Mon Sep 17 00:00:00 2001 From: George Song Date: Wed, 31 Aug 2016 13:37:55 -0700 Subject: [PATCH] Disable debug-toolbar ProfilingPanel There's a [bug](https://github.com/jazzband/django-debug-toolbar/issues/792) that prevents wrapped views from working properly with the profiling panel. Disable it by default. --- cms/envs/devstack.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cms/envs/devstack.py b/cms/envs/devstack.py index a3bdd31537..dbb1e7cc38 100644 --- a/cms/envs/devstack.py +++ b/cms/envs/devstack.py @@ -79,7 +79,12 @@ DEBUG_TOOLBAR_PANELS = ( ) DEBUG_TOOLBAR_CONFIG = { - 'SHOW_TOOLBAR_CALLBACK': 'cms.envs.devstack.should_show_debug_toolbar' + # Profile panel is incompatible with wrapped views + # See https://github.com/jazzband/django-debug-toolbar/issues/792 + 'DISABLE_PANELS': ( + 'debug_toolbar.panels.profiling.ProfilingPanel', + ), + 'SHOW_TOOLBAR_CALLBACK': 'cms.envs.devstack.should_show_debug_toolbar', }