Skip to content

Commit bf3c30b

Browse files
committed
Enforce toolbar vs panel organization of configs.
This enforces our organization of toolbar configs first and the panel specific configs second.
1 parent c02105b commit bf3c30b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

debug_toolbar/settings.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,16 @@ def _is_running_tests():
2323
"debug_toolbar.panels.redirects.RedirectsPanel",
2424
},
2525
"INSERT_BEFORE": "</body>",
26+
"IS_RUNNING_TESTS": _is_running_tests(),
27+
"OBSERVE_REQUEST_CALLBACK": "debug_toolbar.toolbar.observe_request",
2628
"RENDER_PANELS": None,
2729
"RESULTS_CACHE_SIZE": 25,
2830
"ROOT_TAG_EXTRA_ATTRS": "",
2931
"SHOW_COLLAPSED": False,
3032
"SHOW_TOOLBAR_CALLBACK": "debug_toolbar.middleware.show_toolbar",
33+
"TOOLBAR_LANGUAGE": None,
34+
"TOOLBAR_STORE_CLASS": "debug_toolbar.store.MemoryStore",
35+
"UPDATE_ON_FETCH": False,
3136
# Panel options
3237
"EXTRA_SIGNALS": [],
3338
"ENABLE_STACKTRACES": True,
@@ -51,11 +56,6 @@ def _is_running_tests():
5156
"SHOW_TEMPLATE_CONTEXT": True,
5257
"SKIP_TEMPLATE_PREFIXES": ("django/forms/widgets/", "admin/widgets/"),
5358
"SQL_WARNING_THRESHOLD": 500, # milliseconds
54-
"OBSERVE_REQUEST_CALLBACK": "debug_toolbar.toolbar.observe_request",
55-
"TOOLBAR_LANGUAGE": None,
56-
"TOOLBAR_STORE_CLASS": "debug_toolbar.store.MemoryStore",
57-
"IS_RUNNING_TESTS": _is_running_tests(),
58-
"UPDATE_ON_FETCH": False,
5959
}
6060

6161

0 commit comments

Comments
 (0)