Skip to content

Commit d9388e9

Browse files
Merge pull request #1 from yamat124/yamat124-patch-1
Update converter.py
2 parents 030e5e1 + e357d33 commit d9388e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphene_sqlalchemy/converter.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .fields import SQLAlchemyConnectionField
1212

1313
try:
14-
from sqlalchemy_utils import ChoiceType, JSONType, ScalarListType
14+
from sqlalchemy_utils import ChoiceType, JSONType, ScalarListType, TSVectorType
1515
except ImportError:
1616
class ChoiceType(object):
1717
pass
@@ -97,6 +97,7 @@ def convert_sqlalchemy_type(type, column, registry=None):
9797
@convert_sqlalchemy_type.register(types.Enum)
9898
@convert_sqlalchemy_type.register(postgresql.ENUM)
9999
@convert_sqlalchemy_type.register(postgresql.UUID)
100+
@convert_sqlalchemy_type.register(TSVectorType)
100101
def convert_column_to_string(type, column, registry=None):
101102
return String(description=get_column_doc(column),
102103
required=not(is_column_nullable(column)))

0 commit comments

Comments
 (0)