code: def _from_rest_on_create(model, props):
      
  
      fields = model.get_fields_with_prop('on_create')
  
      for field in fields:
          props[field[0]] = field[1]
docs: Assign the default values when creating a model
  
      This is done on fields with `on_create=<value>`.