Skip to content

Commit cdd8bd9

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 af70b8c commit cdd8bd9

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,
@@ -52,11 +57,6 @@ def _is_running_tests():
5257
"SKIP_TEMPLATE_PREFIXES": ("django/forms/widgets/", "admin/widgets/"),
5358
"SKIP_TOOLBAR_QUERIES": True,
5459
"SQL_WARNING_THRESHOLD": 500, # milliseconds
55-
"OBSERVE_REQUEST_CALLBACK": "debug_toolbar.toolbar.observe_request",
56-
"TOOLBAR_LANGUAGE": None,
57-
"TOOLBAR_STORE_CLASS": "debug_toolbar.store.MemoryStore",
58-
"IS_RUNNING_TESTS": _is_running_tests(),
59-
"UPDATE_ON_FETCH": False,
6060
}
6161

6262

0 commit comments

Comments
 (0)