def _to_python(self, value, state): if value in ("", "None", None): return None else: return Stream.find_by_id(value)