diff options
| author | Rob Hudson | 2008-09-21 22:35:15 -0700 | 
|---|---|---|
| committer | Rob Hudson | 2008-09-21 22:35:15 -0700 | 
| commit | ee810109f7dfb8c70278b5c447b4604bccc987a0 (patch) | |
| tree | 2adde32a29aa1950b50adc359d808e514c16cd95 /debug_toolbar/panels/sql.py | |
| parent | ee75a75f7e379b492af927b261726bc5d40fdb50 (diff) | |
| download | django-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.py | 6 | 
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 | 
