Skip to content

Using sqlalchemy_utils ChoiceType not working #562

Answered by aminalaee
im-ajaymeena asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not much familiar with sqlalchemy_utils but why do you have this?

collection_type = ChoiceType(COLLECTION_TYPES)

But instead you should have:

collection_type = Column(ChoiceType(COLLECTION_TYPES))

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@im-ajaymeena
Comment options

@aminalaee
Comment options

@im-ajaymeena
Comment options

@aminalaee
Comment options

Answer selected by im-ajaymeena
@im-ajaymeena
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants