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
If you have a model with JSONB field, and there's a dumped date / datetime, marshmallow won't be able to serialize it due to it being serialized already (date and datetime strings will cause an error when tried to serialize)
smth like TypeError: descriptor 'isoformat' requires a 'datetime.date' object but received a 'str'
possible solution: load all JSONB fields when loading object, or just before serializing
plz note that modifying object in-place may (and will) cause an error when session is flushed, because JSONB attrs will contain unserializable values. Please consider not modifying real object implicitly
If you have a model with JSONB field, and there's a dumped date / datetime, marshmallow won't be able to serialize it due to it being serialized already (date and datetime strings will cause an error when tried to serialize)
smth like
TypeError: descriptor 'isoformat' requires a 'datetime.date' object but received a 'str'
possible solution: load all JSONB fields when loading object, or just before serializing
also there can be other types which require to be converted
The text was updated successfully, but these errors were encountered: