Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to db.Float(11, False) or db.Float(11, True) #22

Open
kylozw opened this issue Nov 9, 2017 · 1 comment
Open

Option to db.Float(11, False) or db.Float(11, True) #22

kylozw opened this issue Nov 9, 2017 · 1 comment

Comments

@kylozw
Copy link

kylozw commented Nov 9, 2017

Now the tools generate db.Column(db.Float(11, True)) for double type fields. In other words, the asdecimal is set to True, and the field type of python object is Decimal. Unfortunately, the default json model don't support Decimal.

I change the asdecimal to False manually to solve json parse. It's better there's an option when generating models.

@ksindi
Copy link
Owner

ksindi commented Nov 17, 2017

thanks @kylozw. feel free to make a PR. unclear to me what the behavior should be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants