mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 12:16:58 +03:00
Fixed unwrap cursor for make it work with DDT. Fixed #181
This commit is contained in:
parent
b9695c877a
commit
7df1f8a88d
|
@ -47,8 +47,9 @@ def wrap_cursor(connection, panel):
|
|||
|
||||
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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user