fixed imports

This commit is contained in:
Mardanov Timur Rustemovich 2018-11-20 12:35:46 +03:00
parent 628ad8e1ef
commit 61c67853c3

View File

@ -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)