aboutsummaryrefslogtreecommitdiffstats
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-24 11:26:07 +0100
committerAymeric Augustin2013-11-24 11:26:07 +0100
commit908b49cb7d2d527b701996f0d0b9e1e19e765819 (patch)
tree545635570f264761d7314aa761cd36d1e6a56f7c /tests/__init__.py
parente7692b33ca7fd3f7704d283d6b1368cdea198d59 (diff)
downloaddjango-debug-toolbar-908b49cb7d2d527b701996f0d0b9e1e19e765819.tar.bz2
Rename some settings for clarity and consistency.
Thanks Jannis for his help.
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index 5be754e..f41162b 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -13,11 +13,12 @@ def update_toolbar_config(**kwargs):
dt_settings.CONFIG = {}
dt_settings.CONFIG.update(dt_settings.CONFIG_DEFAULTS)
dt_settings.CONFIG.update(kwargs['value'] or {})
-
+ # This doesn't account for deprecated configuration options.
@receiver(setting_changed)
def update_toolbar_panels(**kwargs):
if kwargs['setting'] == 'DEBUG_TOOLBAR_PANELS':
dt_settings.PANELS = kwargs['value'] or dt_settings.PANELS_DEFAULTS
DebugToolbar._panel_classes = None
- # Not implemented: invalidate debug_toolbar.urls
+ # Not implemented: invalidate debug_toolbar.urls.
+ # This doesn't account for deprecated panel names.