Skip to content

Commit e5e6db6

Browse files
tim-schillingfedericobond
authored andcommitted
Enforce toolbar vs panel organization of configs.
This enforces our organization of toolbar configs first and the panel specific configs second.
1 parent bd14b64 commit e5e6db6

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
@@ -24,11 +24,16 @@ def _is_running_tests():
2424
},
2525
"EDITOR_URL_CALLBACK": lambda f: None,
2626
"INSERT_BEFORE": "</body>",
27+
"IS_RUNNING_TESTS": _is_running_tests(),
28+
"OBSERVE_REQUEST_CALLBACK": "debug_toolbar.toolbar.observe_request",
2729
"RENDER_PANELS": None,
2830
"RESULTS_CACHE_SIZE": 25,
2931
"ROOT_TAG_EXTRA_ATTRS": "",
3032
"SHOW_COLLAPSED": False,
3133
"SHOW_TOOLBAR_CALLBACK": "debug_toolbar.middleware.show_toolbar",
34+
"TOOLBAR_LANGUAGE": None,
35+
"TOOLBAR_STORE_CLASS": "debug_toolbar.store.MemoryStore",
36+
"UPDATE_ON_FETCH": False,
3237
# Panel options
3338
"EXTRA_SIGNALS": [],
3439
"ENABLE_STACKTRACES": True,
@@ -53,11 +58,6 @@ def _is_running_tests():
5358
"SKIP_TEMPLATE_PREFIXES": ("django/forms/widgets/", "admin/widgets/"),
5459
"SKIP_TOOLBAR_QUERIES": True,
5560
"SQL_WARNING_THRESHOLD": 500, # milliseconds
56-
"OBSERVE_REQUEST_CALLBACK": "debug_toolbar.toolbar.observe_request",
57-
"TOOLBAR_LANGUAGE": None,
58-
"TOOLBAR_STORE_CLASS": "debug_toolbar.store.MemoryStore",
59-
"IS_RUNNING_TESTS": _is_running_tests(),
60-
"UPDATE_ON_FETCH": False,
6161
}
6262

6363

0 commit comments

Comments
 (0)