Skip to content

Commit c5b15ce

Browse files
committed
Removed the collision with django-debug-toolbar tracking. #108
1 parent 457ecbe commit c5b15ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ def recording(self, v):
3333

3434

3535
def wrap_cursor(connection, panel):
36-
if not hasattr(connection, '_djdt_cursor'):
37-
connection._djdt_cursor = connection.cursor
36+
if not hasattr(connection, '_graphene_cursor'):
37+
connection._graphene_cursor = connection.cursor
3838

3939
def cursor():
40-
return state.Wrapper(connection._djdt_cursor(), connection, panel)
40+
return state.Wrapper(connection._graphene_cursor(), connection, panel)
4141

4242
connection.cursor = cursor
4343
return cursor
4444

4545

4646
def unwrap_cursor(connection):
47-
if hasattr(connection, '_djdt_cursor'):
48-
del connection._djdt_cursor
47+
if hasattr(connection, '_graphene_cursor'):
48+
del connection._graphene_cursor
4949
del connection.cursor
5050

5151

0 commit comments

Comments
 (0)