Skip to content

Commit

Permalink
add temporary fix for enum description
Browse files Browse the repository at this point in the history
  • Loading branch information
Firas Kafri authored and Firas Kafri committed May 4, 2023
1 parent b2a3295 commit 433c0b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion graphene_django/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ class EnumWithDescriptionsType:
def description(self):
return str(named_choices_descriptions[self.name])

return_type = Enum(name, list(named_choices), type=EnumWithDescriptionsType)
return_type = Enum(
name,
list(named_choices),
type=EnumWithDescriptionsType,
description="An enumeration.", # Temporary fix until https://github.com/graphql-python/graphene/pull/1502 is merged
)
return return_type


Expand Down

0 comments on commit 433c0b8

Please sign in to comment.