From 12fdf7ea605d3716d6c9127e22a63bcc345d55be Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sat, 7 Apr 2012 02:26:43 +0200 Subject: 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. --- debug_toolbar/utils/tracking/db.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'debug_toolbar/utils/tracking') 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: -- cgit v1.2.3