diff options
| author | David Cramer | 2011-05-16 14:09:31 -0700 |
|---|---|---|
| committer | David Cramer | 2011-05-16 14:09:31 -0700 |
| commit | 679c3214d6777171fa0bca9f8d1c5267c2dbbfaa (patch) | |
| tree | fc44396267d4d32e33e5613cfbf5606618002656 /debug_toolbar/utils/tracking | |
| parent | 948af8f6747c1c92070c26310a5f6c08af5b6c54 (diff) | |
| download | django-debug-toolbar-679c3214d6777171fa0bca9f8d1c5267c2dbbfaa.tar.bz2 | |
alias should be derived from cursor's db, not the cursor itself
Diffstat (limited to 'debug_toolbar/utils/tracking')
| -rw-r--r-- | debug_toolbar/utils/tracking/db.py | 2 |
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: |
