FireO icon indicating copy to clipboard operation
FireO copied to clipboard

Model.from_dict does not build NestedModel instances for ListField(NestedModel(...))

Open sugoh opened this issue 4 months ago • 0 comments

Description

When a parent model has fields defined as ListField(NestedModel(...)), calling ParentModel.from_dict({...}) with lists of dicts for those fields does not recursively construct the nested model instances.

On object creation, FireO crashes with:

Cannot serialize model 'app.db.foo.Bar with key 'foo/JoKMNfstw3c0LFfat1jG' due to error in field 'listfieldname[0]': 'dict' object has no attribute 'to_db_dict'

sugoh avatar Aug 26 '25 04:08 sugoh