Open mahenzon opened 4 years ago
Assign it to me i will work on it @mahenzon
@rexdivakar cool! Good luck Please don't forget to provide tests 🙂
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
@rexdivakar any news?
Hey @mahenzon Its been a while and I missed this issue, will work on it and raise a PR soon
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