Skip to content

Commit 79508d1

Browse files
import condition for Enum Field updated
1 parent 97266e6 commit 79508d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_mongo/converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def dynamic_type():
429429
return graphene.Dynamic(dynamic_type)
430430

431431

432-
if sys.version_info[0] > 3.5:
432+
if sys.version_info.major >= 3 and sys.version_info.minor > 5:
433433
@convert_mongoengine_field.register(mongoengine.EnumField)
434434
def convert_field_to_enum(field, registry=None):
435435
return graphene.Field(graphene.Enum.from_enum(field._enum_cls),

0 commit comments

Comments
 (0)