Skip to content

Typing a column as : Optional[Decimal] fails with "ValueError: Unknown constraint max_digits" #791

Answered by riziles
pellejacobs asked this question in Questions
Discussion options

You must be logged in to vote

@pellejacobs , I added nullable=True to the Field parameters and it seems to work fine.

Also: you may want to set the default to None if you want it to be optional. I don't think you have to, but it might be easier.

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
8 replies
@jspaezp
Comment options

@jspaezp
Comment options

@jspaezp
Comment options

@joachimhuet
Comment options

@jspaezp
Comment options

Answer selected by pellejacobs
Comment options

You must be logged in to vote
1 reply
@metamoof
Comment options

Comment options

You must be logged in to vote
1 reply
@metamoof
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
6 participants