Skip to content

Commit 8d7683e

Browse files
author
Brandon Konkle
committed
Provide the class name explicitly to super() to prevent infinite loops when SQLDebugPanel is subclassed.
1 parent eeca7d8 commit 8d7683e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/panels/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class SQLDebugPanel(DebugPanel):
219219
has_content = True
220220

221221
def __init__(self, *args, **kwargs):
222-
super(self.__class__, self).__init__(*args, **kwargs)
222+
super(SQLDebugPanel, self).__init__(*args, **kwargs)
223223
self._offset = dict((conn, len(connections[conn].queries)) for conn in connections)
224224
self._sql_time = 0
225225
self._queries = []

0 commit comments

Comments
 (0)