mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-10 16:22:20 +03:00
Fixed assert name conversion
This commit is contained in:
parent
bb127090d9
commit
0eb3a3e6b0
|
@ -26,7 +26,12 @@ from graphene import (
|
||||||
from graphene.types.json import JSONString
|
from graphene.types.json import JSONString
|
||||||
from graphene.types.scalars import BigInt
|
from graphene.types.scalars import BigInt
|
||||||
from graphene.utils.str_converters import to_camel_case
|
from graphene.utils.str_converters import to_camel_case
|
||||||
from graphql import GraphQLError, assert_name
|
from graphql import GraphQLError
|
||||||
|
try:
|
||||||
|
from graphql import assert_name
|
||||||
|
except ImportError:
|
||||||
|
# Support for older versions of graphql
|
||||||
|
from graphql import assert_valid_name as assert_name
|
||||||
from graphql.pyutils import register_description
|
from graphql.pyutils import register_description
|
||||||
|
|
||||||
from .compat import ArrayField, HStoreField, JSONField, PGJSONField, RangeField
|
from .compat import ArrayField, HStoreField, JSONField, PGJSONField, RangeField
|
||||||
|
|
Loading…
Reference in New Issue
Block a user