Skip to content

Commit

Permalink
fix: make sure to check against correct wrapper class
Browse files Browse the repository at this point in the history
  • Loading branch information
saemideluxe committed Jun 10, 2021
1 parent d0f7cfa commit 7e2c161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug_toolbar/panels/sql/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def chunked_cursor(*args, **kwargs):
# prevent double wrapping
# solves https://github.com/jazzband/django-debug-toolbar/issues/1239
cursor = connection._djdt_chunked_cursor(*args, **kwargs)
if not isinstance(cursor, NormalCursorWrapper):
if not isinstance(cursor, state.Wrapper):
return state.Wrapper(cursor, connection, panel)
return cursor

Expand Down

0 comments on commit 7e2c161

Please sign in to comment.