We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97266e6 commit 79508d1Copy full SHA for 79508d1
graphene_mongo/converter.py
@@ -429,7 +429,7 @@ def dynamic_type():
429
return graphene.Dynamic(dynamic_type)
430
431
432
-if sys.version_info[0] > 3.5:
+if sys.version_info.major >= 3 and sys.version_info.minor > 5:
433
@convert_mongoengine_field.register(mongoengine.EnumField)
434
def convert_field_to_enum(field, registry=None):
435
return graphene.Field(graphene.Enum.from_enum(field._enum_cls),
0 commit comments