Skip to content

Commit 34764fb

Browse files
authored
Update converter.py
Added support for INET and CIDR types by adding two additional conversion decorators on the convert_column_to_string function.
1 parent c2da407 commit 34764fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphene_sqlalchemy/converter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def convert_sqlalchemy_type(type, column, registry=None):
9999
@convert_sqlalchemy_type.register(types.UnicodeText)
100100
@convert_sqlalchemy_type.register(types.Enum)
101101
@convert_sqlalchemy_type.register(postgresql.ENUM)
102+
@convert_sqlalchemy_type.register(postgresql.INET)
103+
@convert_sqlalchemy_type.register(postgresql.CIDR)
102104
@convert_sqlalchemy_type.register(postgresql.UUID)
103105
@convert_sqlalchemy_type.register(TSVectorType)
104106
def convert_column_to_string(type, column, registry=None):

0 commit comments

Comments
 (0)