Skip to content

Commit b3e43a0

Browse files
committed
Clean up additional connection instrumentation attribute
The _djdt_chunked_cursor attribute wasn't being cleaned up in the unwrap_cursor() method.
1 parent c5ee3f3 commit b3e43a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

debug_toolbar/panels/sql/tracking.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def chunked_cursor(*args, **kwargs):
6161
def unwrap_cursor(connection):
6262
if hasattr(connection, "_djdt_cursor"):
6363
del connection._djdt_cursor
64+
del connection._djdt_chunked_cursor
6465
del connection.cursor
6566
del connection.chunked_cursor
6667

0 commit comments

Comments
 (0)