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