Skip to content

Commit

Permalink
Fixed unwrap cursor for make it work with DDT. Fixed #181
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Jun 1, 2016
1 parent b9695c8 commit 7df1f8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphene/contrib/django/debug/sql/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ def cursor():

def unwrap_cursor(connection):
if hasattr(connection, '_graphene_cursor'):
previous_cursor = connection._graphene_cursor
connection.cursor = previous_cursor
del connection._graphene_cursor
del connection.cursor


class ExceptionCursorWrapper(object):
Expand Down

0 comments on commit 7df1f8a

Please sign in to comment.