Skip to content

Commit 6d3ef0f

Browse files
committed
Pass through extra arguments to the wrapped cursor. This is needed
for a server-side cursor implementation.
1 parent 83918d2 commit 6d3ef0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

debug_toolbar/panels/sql/tracking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def wrap_cursor(connection, panel):
3838
if not hasattr(connection, '_djdt_cursor'):
3939
connection._djdt_cursor = connection.cursor
4040

41-
def cursor():
42-
return state.Wrapper(connection._djdt_cursor(), connection, panel)
41+
def cursor(*args, **kwargs):
42+
return state.Wrapper(connection._djdt_cursor(*args, **kwargs), connection, panel)
4343

4444
connection.cursor = cursor
4545
return cursor

0 commit comments

Comments
 (0)