@@ -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