aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/sql.py
diff options
context:
space:
mode:
authorYann Malet2011-09-10 01:24:32 +0200
committerYann Malet2011-09-10 01:24:32 +0200
commita08238af1ec07e077a0ee0f816d82c62c3f0ac63 (patch)
treeb07b38321d91df424538a0c5a632c93e6df0f9c7 /debug_toolbar/panels/sql.py
parent970e084055c1210ff6251965bc87ad1b0d72ea0e (diff)
downloaddjango-debug-toolbar-a08238af1ec07e077a0ee0f816d82c62c3f0ac63.tar.bz2
Revert some of the previous changes and modify slightly the panels to separate the gneration of the stats and the generation of the content.
Diffstat (limited to 'debug_toolbar/panels/sql.py')
-rw-r--r--debug_toolbar/panels/sql.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py
index 2eced7c..bfe52d9 100644
--- a/debug_toolbar/panels/sql.py
+++ b/debug_toolbar/panels/sql.py
@@ -211,6 +211,7 @@ class SQLDebugPanel(DebugPanel):
'sql_time': self._sql_time,
}
request.debug_toolbar.stats['sql'] = getattr(self, 'stats', None)
+ return response
def content(self):
context = self.context.copy()