Problem: models with optional nested fields cannot be saved:
from fireo.fields import NestedModelField, TextField
from fireo.models import Model
class MyNested(Model):
my_required_field = TextField(required=True)
class MyModel(Model):
some_field = TextField()
my_nested = NestedModelField(MyNested, default=None) # "None" is the default value for default anyway
my_model = MyModel()
my_model.some_field = "some value"
my_model.save() # error! my_required_field is required
Problem: models with optional nested fields cannot be saved: