You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an SQLAlchemy mode with a Numeric column as in the following example
db = flask_sqlalchemy.SQLAlchemy()
ma = flask_marshmallow.Marshmallow()
class Project(db.Model):
budget = db.Column(db.Numeric)
class ProjectSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = Project
budget = ma.auto_field()
Deserialized values for the budget field appear as strings. However, if I remove the auto_field and use Number instead, all is well. Is there a reason why db.Numeric doesn't map to ma.Number?
The text was updated successfully, but these errors were encountered:
I have an SQLAlchemy mode with a
Numeric
column as in the following exampleDeserialized values for the
budget
field appear as strings. However, if I remove theauto_field
and useNumber
instead, all is well. Is there a reason whydb.Numeric
doesn't map toma.Number
?The text was updated successfully, but these errors were encountered: