From acee080c023cd9a9e98f1d30dd2820ccbed45151 Mon Sep 17 00:00:00 2001 From: Tim Schilling Date: Wed, 19 Nov 2025 10:42:19 -0600 Subject: [PATCH] Enforce toolbar vs panel organization of configs. This enforces our organization of toolbar configs first and the panel specific configs second. --- debug_toolbar/settings.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/debug_toolbar/settings.py b/debug_toolbar/settings.py index e9f72a370..ba64c8273 100644 --- a/debug_toolbar/settings.py +++ b/debug_toolbar/settings.py @@ -23,11 +23,16 @@ def _is_running_tests(): "debug_toolbar.panels.redirects.RedirectsPanel", }, "INSERT_BEFORE": "", + "IS_RUNNING_TESTS": _is_running_tests(), + "OBSERVE_REQUEST_CALLBACK": "debug_toolbar.toolbar.observe_request", "RENDER_PANELS": None, "RESULTS_CACHE_SIZE": 25, "ROOT_TAG_EXTRA_ATTRS": "", "SHOW_COLLAPSED": False, "SHOW_TOOLBAR_CALLBACK": "debug_toolbar.middleware.show_toolbar", + "TOOLBAR_LANGUAGE": None, + "TOOLBAR_STORE_CLASS": "debug_toolbar.store.MemoryStore", + "UPDATE_ON_FETCH": False, # Panel options "EXTRA_SIGNALS": [], "ENABLE_STACKTRACES": True, @@ -52,11 +57,6 @@ def _is_running_tests(): "SKIP_TEMPLATE_PREFIXES": ("django/forms/widgets/", "admin/widgets/"), "SKIP_TOOLBAR_QUERIES": True, "SQL_WARNING_THRESHOLD": 500, # milliseconds - "OBSERVE_REQUEST_CALLBACK": "debug_toolbar.toolbar.observe_request", - "TOOLBAR_LANGUAGE": None, - "TOOLBAR_STORE_CLASS": "debug_toolbar.store.MemoryStore", - "IS_RUNNING_TESTS": _is_running_tests(), - "UPDATE_ON_FETCH": False, }