Skip to content

Commit 7e2c161

Browse files
committed
fix: make sure to check against correct wrapper class
1 parent d0f7cfa commit 7e2c161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/panels/sql/tracking.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def chunked_cursor(*args, **kwargs):
5858
# prevent double wrapping
5959
# solves https://github.com/jazzband/django-debug-toolbar/issues/1239
6060
cursor = connection._djdt_chunked_cursor(*args, **kwargs)
61-
if not isinstance(cursor, NormalCursorWrapper):
61+
if not isinstance(cursor, state.Wrapper):
6262
return state.Wrapper(cursor, connection, panel)
6363
return cursor
6464

0 commit comments

Comments
 (0)