diff options
| author | Aymeric Augustin | 2013-11-12 22:05:52 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2013-11-12 22:15:50 +0100 |
| commit | f48039e3bad9e24a59a25ed5636b428e11784da9 (patch) | |
| tree | dbb6471cbf1ceb504d9932639b3ca40a57b89a31 /debug_toolbar/panels/cache.py | |
| parent | c1d50fc79645c71987ae156d371777dd371c422d (diff) | |
| download | django-debug-toolbar-f48039e3bad9e24a59a25ed5636b428e11784da9.tar.bz2 | |
Move the logic to load panels inside the DebugToolbar class.
This has the additional advantage of eliminating a side-effect that
happened at import time unnecessarily.
It justified refactoring the way we handle settings and defaults.
Diffstat (limited to 'debug_toolbar/panels/cache.py')
| -rw-r--r-- | debug_toolbar/panels/cache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/panels/cache.py b/debug_toolbar/panels/cache.py index 831eacb..7d42c1f 100644 --- a/debug_toolbar/panels/cache.py +++ b/debug_toolbar/panels/cache.py @@ -16,7 +16,7 @@ from django.utils.translation import ugettext_lazy as _, ungettext from debug_toolbar.panels import DebugPanel from debug_toolbar.utils import (tidy_stacktrace, render_stacktrace, get_template_info, get_stack) -from debug_toolbar.utils.settings import CONFIG +from debug_toolbar.utils import settings as dt_settings cache_called = Signal(providing_args=[ @@ -29,7 +29,7 @@ def send_signal(method): value = method(self, *args, **kwargs) t = time.time() - t - if CONFIG['ENABLE_STACKTRACES']: + if dt_settings.CONFIG['ENABLE_STACKTRACES']: stacktrace = tidy_stacktrace(reversed(get_stack())) else: stacktrace = [] |
