Skip to content

Problem subclassing SQLDebugPanel #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 16, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion debug_toolbar/panels/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class CacheDebugPanel(DebugPanel):
has_content = True

def __init__(self, *args, **kwargs):
super(self.__class__, self).__init__(*args, **kwargs)
super(CacheDebugPanel, self).__init__(*args, **kwargs)
# This is hackish but to prevent threading issues is somewhat needed
if isinstance(cache.cache, CacheStatTracker):
cache.cache.reset()
Expand Down
2 changes: 1 addition & 1 deletion debug_toolbar/panels/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down