def make_value_from_form(self, value):
    if value:
      if not isinstance(value, db.Model):
        value = db.get(value)
    return value
Convert a form value to a property value.
dataset/ETHPy150Open IanLewis/kay/kay/utils/forms/modelform.py/ReferenceProperty.make_value_from_form