Skip to content

Commit 679c321

Browse files
committed
alias should be derived from cursor's db, not the cursor itself
1 parent 948af8f commit 679c321

File tree

1 file changed

+1
-1
lines changed
  • debug_toolbar/utils/tracking

1 file changed

+1
-1
lines changed

debug_toolbar/utils/tracking/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def execute(self, sql, params=()):
5757
pass
5858
del cur_frame
5959

60-
alias = getattr(self, 'alias', 'default')
60+
alias = getattr(self.db, 'alias', 'default')
6161
conn = connections[alias].connection
6262
# HACK: avoid imports
6363
if conn:

0 commit comments

Comments
 (0)