aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/sql.py
diff options
context:
space:
mode:
authorDavid Cramer2011-03-30 16:33:34 -0700
committerDavid Cramer2011-03-30 16:33:34 -0700
commitf492b56c8200eebb77b8023ab386c9ef412cc06b (patch)
treee4b05a543bdbc5bdc2b179902ac824ae59f78224 /debug_toolbar/panels/sql.py
parent65969f7777ce0bd6bba53540d960a93c27b346ce (diff)
downloaddjango-debug-toolbar-f492b56c8200eebb77b8023ab386c9ef412cc06b.tar.bz2
Some initial tests and fix for execution model
Diffstat (limited to 'debug_toolbar/panels/sql.py')
-rw-r--r--debug_toolbar/panels/sql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py
index a78a3e2..4c7b8a1 100644
--- a/debug_toolbar/panels/sql.py
+++ b/debug_toolbar/panels/sql.py
@@ -102,12 +102,12 @@ class CursorWrapper(object):
def execute(self, sql, params=()):
djdt = DebugToolbarMiddleware.get_current()
if not djdt:
- return self.cursor.execute(self, sql, params)
+ return self.cursor.execute(sql, params)
panel = djdt.get_panel(SQLDebugPanel)
start = datetime.now()
try:
- return self.cursor.execute(self, sql, params)
+ return self.cursor.execute(sql, params)
finally:
stop = datetime.now()
duration = ms_from_timedelta(stop - start)