File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1515
1616CONFIG_DEFAULTS = {
1717 # Toolbar options
18- 'DISABLE_PANELS' : set ([ 'debug_toolbar.panels.redirects.RedirectsPanel' ]) ,
18+ 'DISABLE_PANELS' : { 'debug_toolbar.panels.redirects.RedirectsPanel' } ,
1919 'INSERT_BEFORE' : '</body>' ,
2020 'JQUERY_URL' : '//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js' ,
2121 'RENDER_PANELS' : None ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ Toolbar options
5252
5353* ``DISABLE_PANELS ``
5454
55- Default: ``set([ 'debug_toolbar.panels.redirects.RedirectsPanel']) ``
55+ Default: ``{ 'debug_toolbar.panels.redirects.RedirectsPanel'} ``
5656
5757 This setting is a set of the full Python paths to each panel that you
5858 want disabled (but still displayed) by default.
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def tearDown(self):
2626
2727 def test_disabled (self ):
2828 config = {
29- 'DISABLE_PANELS' : set ([ 'debug_toolbar.panels.sql.SQLPanel' ])
29+ 'DISABLE_PANELS' : { 'debug_toolbar.panels.sql.SQLPanel' }
3030 }
3131 self .assertTrue (self .panel .enabled )
3232 with self .settings (DEBUG_TOOLBAR_CONFIG = config ):
Original file line number Diff line number Diff line change @@ -76,8 +76,7 @@ def test_custom_context_processor(self):
7676
7777 def test_disabled (self ):
7878 config = {
79- 'DISABLE_PANELS' : set ([
80- 'debug_toolbar.panels.templates.TemplatesPanel' ])
79+ 'DISABLE_PANELS' : {'debug_toolbar.panels.templates.TemplatesPanel' }
8180 }
8281 self .assertTrue (self .panel .enabled )
8382 with self .settings (DEBUG_TOOLBAR_CONFIG = config ):
You can’t perform that action at this time.
0 commit comments