And I got the error whenever I try to create or update the data. Error: sqlalchemy.exc.StatementError: (builtins.TypeError) Not a boolean value: 'True'
I think the 'True' value is a string, not a boolean, that trigger the error. Is there anyway to bypass this problem? Thank you!
I'm using form_choices of flask-admin. The buy_or_sell column is a boolean column. Here is my code:
And I got the error whenever I try to create or update the data. Error: sqlalchemy.exc.StatementError: (builtins.TypeError) Not a boolean value: 'True'
I think the 'True' value is a string, not a boolean, that trigger the error. Is there anyway to bypass this problem? Thank you!