Skip to content

Commit 7df1f8a

Browse files
committed
Fixed unwrap cursor for make it work with DDT. Fixed #181
1 parent b9695c8 commit 7df1f8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphene/contrib/django/debug/sql/tracking.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ def cursor():
4747

4848
def unwrap_cursor(connection):
4949
if hasattr(connection, '_graphene_cursor'):
50+
previous_cursor = connection._graphene_cursor
51+
connection.cursor = previous_cursor
5052
del connection._graphene_cursor
51-
del connection.cursor
5253

5354

5455
class ExceptionCursorWrapper(object):

0 commit comments

Comments
 (0)