Skip to content

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

@kylozw

Description

@kylozw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions