diff --git a/debug_toolbar/settings.py b/debug_toolbar/settings.py index d871bf15d..bfcc4022f 100644 --- a/debug_toolbar/settings.py +++ b/debug_toolbar/settings.py @@ -15,7 +15,7 @@ CONFIG_DEFAULTS = { # Toolbar options - 'DISABLE_PANELS': set(['debug_toolbar.panels.redirects.RedirectsPanel']), + 'DISABLE_PANELS': {'debug_toolbar.panels.redirects.RedirectsPanel'}, 'INSERT_BEFORE': '', 'JQUERY_URL': '//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js', 'RENDER_PANELS': None, diff --git a/docs/configuration.rst b/docs/configuration.rst index 12c6f7597..efee40a13 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -52,7 +52,7 @@ Toolbar options * ``DISABLE_PANELS`` - Default: ``set(['debug_toolbar.panels.redirects.RedirectsPanel'])`` + Default: ``{'debug_toolbar.panels.redirects.RedirectsPanel'}`` This setting is a set of the full Python paths to each panel that you want disabled (but still displayed) by default. diff --git a/tests/panels/test_sql.py b/tests/panels/test_sql.py index 993583201..827758b33 100644 --- a/tests/panels/test_sql.py +++ b/tests/panels/test_sql.py @@ -26,7 +26,7 @@ def tearDown(self): def test_disabled(self): config = { - 'DISABLE_PANELS': set(['debug_toolbar.panels.sql.SQLPanel']) + 'DISABLE_PANELS': {'debug_toolbar.panels.sql.SQLPanel'} } self.assertTrue(self.panel.enabled) with self.settings(DEBUG_TOOLBAR_CONFIG=config): diff --git a/tests/panels/test_template.py b/tests/panels/test_template.py index 41fc65fdd..1d5a24bcc 100644 --- a/tests/panels/test_template.py +++ b/tests/panels/test_template.py @@ -76,8 +76,7 @@ def test_custom_context_processor(self): def test_disabled(self): config = { - 'DISABLE_PANELS': set([ - 'debug_toolbar.panels.templates.TemplatesPanel']) + 'DISABLE_PANELS': {'debug_toolbar.panels.templates.TemplatesPanel'} } self.assertTrue(self.panel.enabled) with self.settings(DEBUG_TOOLBAR_CONFIG=config):