aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/utils/tracking
diff options
context:
space:
mode:
authorJannis Leidel2012-04-07 02:26:43 +0200
committerJannis Leidel2012-04-07 02:26:43 +0200
commit12fdf7ea605d3716d6c9127e22a63bcc345d55be (patch)
tree3d10c52bb303cfa79d158f9fb71e6f4d8f3facd1 /debug_toolbar/utils/tracking
parentcf2fcb55e297098922bb200eda33b77becfa0ea6 (diff)
downloaddjango-debug-toolbar-12fdf7ea605d3716d6c9127e22a63bcc345d55be.tar.bz2
Updated cache panel to handle multiple backends and look more like the SQL panel. This is based mostly on the awesome work by @diox done in 9aa062bb6c4318aa81c202003ea902249c0071d1. Closes #134.
Diffstat (limited to 'debug_toolbar/utils/tracking')
-rw-r--r--debug_toolbar/utils/tracking/db.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/debug_toolbar/utils/tracking/db.py b/debug_toolbar/utils/tracking/db.py
index c0789eb..4d87090 100644
--- a/debug_toolbar/utils/tracking/db.py
+++ b/debug_toolbar/utils/tracking/db.py
@@ -91,8 +91,7 @@ class NormalCursorWrapper(object):
stop = datetime.now()
duration = ms_from_timedelta(stop - start)
enable_stacktraces = getattr(settings,
- 'DEBUG_TOOLBAR_CONFIG', {}) \
- .get('ENABLE_STACKTRACES', True)
+ 'DEBUG_TOOLBAR_CONFIG', {}).get('ENABLE_STACKTRACES', True)
if enable_stacktraces:
stacktrace = tidy_stacktrace(reversed(get_stack()))
else: