mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-13 13:16:49 +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):
|
def unwrap_cursor(connection):
|
||||||
if hasattr(connection, '_graphene_cursor'):
|
if hasattr(connection, '_graphene_cursor'):
|
||||||
|
previous_cursor = connection._graphene_cursor
|
||||||
|
connection.cursor = previous_cursor
|
||||||
del connection._graphene_cursor
|
del connection._graphene_cursor
|
||||||
del connection.cursor
|
|
||||||
|
|
||||||
|
|
||||||
class ExceptionCursorWrapper(object):
|
class ExceptionCursorWrapper(object):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user