aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/sql.py
diff options
context:
space:
mode:
authorDavid Cramer2011-04-13 11:10:53 -0700
committerDavid Cramer2011-04-13 11:10:53 -0700
commit95b1654028f74db4478da2214460ae8c363e8084 (patch)
tree8a0725ae3766176a9ed0c756b1fb2af550c094a8 /debug_toolbar/panels/sql.py
parent4f159454e5c56655c55a3f5fd9666013bedddc38 (diff)
downloaddjango-debug-toolbar-95b1654028f74db4478da2214460ae8c363e8084.tar.bz2
Fix a bug with marking the last query in a transaction as the end of chain
Diffstat (limited to 'debug_toolbar/panels/sql.py')
-rw-r--r--debug_toolbar/panels/sql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py
index 0fac42b..ff63b6f 100644
--- a/debug_toolbar/panels/sql.py
+++ b/debug_toolbar/panels/sql.py
@@ -197,7 +197,7 @@ class SQLDebugPanel(DebugPanel):
i += 1
if trans_id:
- self._queries[i][1]['ends_trans'] = True
+ self._queries[i-1][1]['ends_trans'] = True
context = self.context.copy()
context.update({