Skip to content

Commit

Permalink
Fix converter function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Apr 11, 2019
1 parent 9dd34ca commit 2f9145c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_sqlalchemy/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def convert_enum_to_enum(type, column, registry=None):


@convert_sqlalchemy_type.register(ChoiceType)
def convert_column_to_enum(type, column, registry=None):
def convert_choice_to_enum(type, column, registry=None):
name = "{}_{}".format(column.table.name, column.name).upper()
return Enum(name, type.choices, description=get_column_doc(column))

Expand Down

0 comments on commit 2f9145c

Please sign in to comment.