def _to_python(self, value, state): from adhocracy.model import Milestone try: return Milestone.find(value) except Exception: return None