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 15
15
16
16
CONFIG_DEFAULTS = {
17
17
# Toolbar options
18
- 'DISABLE_PANELS' : set ([ 'debug_toolbar.panels.redirects.RedirectsPanel' ]) ,
18
+ 'DISABLE_PANELS' : { 'debug_toolbar.panels.redirects.RedirectsPanel' } ,
19
19
'INSERT_BEFORE' : '</body>' ,
20
20
'JQUERY_URL' : '//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js' ,
21
21
'RENDER_PANELS' : None ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ Toolbar options
52
52
53
53
* ``DISABLE_PANELS ``
54
54
55
- Default: ``set([ 'debug_toolbar.panels.redirects.RedirectsPanel']) ``
55
+ Default: ``{ 'debug_toolbar.panels.redirects.RedirectsPanel'} ``
56
56
57
57
This setting is a set of the full Python paths to each panel that you
58
58
want disabled (but still displayed) by default.
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def tearDown(self):
26
26
27
27
def test_disabled (self ):
28
28
config = {
29
- 'DISABLE_PANELS' : set ([ 'debug_toolbar.panels.sql.SQLPanel' ])
29
+ 'DISABLE_PANELS' : { 'debug_toolbar.panels.sql.SQLPanel' }
30
30
}
31
31
self .assertTrue (self .panel .enabled )
32
32
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):
76
76
77
77
def test_disabled (self ):
78
78
config = {
79
- 'DISABLE_PANELS' : set ([
80
- 'debug_toolbar.panels.templates.TemplatesPanel' ])
79
+ 'DISABLE_PANELS' : {'debug_toolbar.panels.templates.TemplatesPanel' }
81
80
}
82
81
self .assertTrue (self .panel .enabled )
83
82
with self .settings (DEBUG_TOOLBAR_CONFIG = config ):
You can’t perform that action at this time.
0 commit comments