From 2f9145c2f702aa6cf39c9a0163b5141fe6b7c0da Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Thu, 11 Apr 2019 20:19:47 +0200 Subject: [PATCH] Fix converter function name --- graphene_sqlalchemy/converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_sqlalchemy/converter.py b/graphene_sqlalchemy/converter.py index 053aa8b5..6d021b88 100644 --- a/graphene_sqlalchemy/converter.py +++ b/graphene_sqlalchemy/converter.py @@ -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))