diff options
| author | Brandon Konkle | 2011-06-15 18:05:27 -0700 | 
|---|---|---|
| committer | Brandon Konkle | 2011-06-15 18:05:27 -0700 | 
| commit | 8d7683e56362f734da556073e45021f6edc1bf06 (patch) | |
| tree | 62cc1ba56a0ec31475d7b7a43a4ea0cfec3e98c0 /debug_toolbar/panels/sql.py | |
| parent | eeca7d8952b665845e44696552093280ede8b03f (diff) | |
| download | django-debug-toolbar-8d7683e56362f734da556073e45021f6edc1bf06.tar.bz2 | |
Provide the class name explicitly to super() to prevent infinite loops when SQLDebugPanel is subclassed.
Diffstat (limited to 'debug_toolbar/panels/sql.py')
| -rw-r--r-- | debug_toolbar/panels/sql.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py index c6e73a0..e95f127 100644 --- a/debug_toolbar/panels/sql.py +++ b/debug_toolbar/panels/sql.py @@ -219,7 +219,7 @@ class SQLDebugPanel(DebugPanel):      has_content = True      def __init__(self, *args, **kwargs): -        super(self.__class__, self).__init__(*args, **kwargs) +        super(SQLDebugPanel, self).__init__(*args, **kwargs)          self._offset = dict((conn, len(connections[conn].queries)) for conn in connections)          self._sql_time = 0          self._queries = [] | 
