Skip to content

Commit 846422f

Browse files
Firas Kafriulgens
Firas Kafri
authored andcommitted
add temporary fix for enum description
1 parent aa0650a commit 846422f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

graphene_django/converter.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,12 @@ class EnumWithDescriptionsType:
9696
def description(self):
9797
return str(named_choices_descriptions[self.name])
9898

99-
return_type = Enum(name, list(named_choices), type=EnumWithDescriptionsType)
99+
return_type = Enum(
100+
name,
101+
list(named_choices),
102+
type=EnumWithDescriptionsType,
103+
description="An enumeration.", # Temporary fix until https://github.com/graphql-python/graphene/pull/1502 is merged
104+
)
100105
return return_type
101106

102107

0 commit comments

Comments
 (0)