aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/sql.py
diff options
context:
space:
mode:
authorRob Hudson2008-09-21 22:35:15 -0700
committerRob Hudson2008-09-21 22:35:15 -0700
commitee810109f7dfb8c70278b5c447b4604bccc987a0 (patch)
tree2adde32a29aa1950b50adc359d808e514c16cd95 /debug_toolbar/panels/sql.py
parentee75a75f7e379b492af927b261726bc5d40fdb50 (diff)
downloaddjango-debug-toolbar-ee810109f7dfb8c70278b5c447b4604bccc987a0.tar.bz2
Refactoring middleware and panels so panels have more explicit middleware-like
methods to be more clear when panel processing happens.
Diffstat (limited to 'debug_toolbar/panels/sql.py')
-rw-r--r--debug_toolbar/panels/sql.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py
index 81834b4..b99709f 100644
--- a/debug_toolbar/panels/sql.py
+++ b/debug_toolbar/panels/sql.py
@@ -27,13 +27,13 @@ util.CursorDebugWrapper = DatabaseStatTracker
class SQLDebugPanel(DebugPanel):
"""
- Panel that displays information about the SQL queries run while processing the request.
+ Panel that displays information about the SQL queries run while processing
+ the request.
"""
name = 'SQL'
has_content = True
- def __init__(self, request):
- super(SQLDebugPanel, self).__init__(request)
+ def __init__(self):
self._offset = len(connection.queries)
self._sql_time = 0