mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
fixed imports
This commit is contained in:
parent
628ad8e1ef
commit
61c67853c3
|
@ -17,17 +17,16 @@ from neomodel import (
|
|||
ZeroOrOne,
|
||||
One,
|
||||
OneOrMore,
|
||||
JsonArrayProperty,
|
||||
)
|
||||
|
||||
from neomodel.relationship_manager import RelationshipDefinition
|
||||
|
||||
# try:
|
||||
# # TimurMardanov fork branch. Supports contain 2D-xD arrays
|
||||
# from neomodel import JsonArrayProperty # noqa
|
||||
# jsonArrayProperty = JsonArrayProperty
|
||||
# except:
|
||||
# jsonArrayProperty = StringProperty
|
||||
try:
|
||||
# TimurMardanov fork branch. Supports contain 2D-xD arrays
|
||||
from neomodel import JsonArrayProperty # noqa
|
||||
jsonArrayProperty = JsonArrayProperty
|
||||
except:
|
||||
jsonArrayProperty = JSONProperty
|
||||
|
||||
from graphene import (
|
||||
ID,
|
||||
|
@ -236,6 +235,6 @@ def convert_postgres_array_to_list(field, registry=None):
|
|||
|
||||
|
||||
@convert_django_field.register(JSONProperty)
|
||||
@convert_django_field.register(JsonArrayProperty)
|
||||
@convert_django_field.register(jsonArrayProperty)
|
||||
def convert_json_field_to_string(field, registry=None):
|
||||
return JSONString(description=field.help_text, required=field.required)
|
||||
|
|
Loading…
Reference in New Issue
Block a user