aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/utils
diff options
context:
space:
mode:
authorDavid Cramer2011-05-16 14:09:31 -0700
committerDavid Cramer2011-05-16 14:09:31 -0700
commit679c3214d6777171fa0bca9f8d1c5267c2dbbfaa (patch)
treefc44396267d4d32e33e5613cfbf5606618002656 /debug_toolbar/utils
parent948af8f6747c1c92070c26310a5f6c08af5b6c54 (diff)
downloaddjango-debug-toolbar-679c3214d6777171fa0bca9f8d1c5267c2dbbfaa.tar.bz2
alias should be derived from cursor's db, not the cursor itself
Diffstat (limited to 'debug_toolbar/utils')
-rw-r--r--debug_toolbar/utils/tracking/db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/utils/tracking/db.py b/debug_toolbar/utils/tracking/db.py
index 90e42bd..ac95f20 100644
--- a/debug_toolbar/utils/tracking/db.py
+++ b/debug_toolbar/utils/tracking/db.py
@@ -57,7 +57,7 @@ class CursorWrapper(object):
pass
del cur_frame
- alias = getattr(self, 'alias', 'default')
+ alias = getattr(self.db, 'alias', 'default')
conn = connections[alias].connection
# HACK: avoid imports
if conn: