

def full_value_from_object(self, obj, ar):
    relto_model = self.get_rel_to(obj)
    if (not relto_model):
        return None
    try:
        return getattr(obj, self.name)
    except relto_model.DoesNotExist:
        return None

dataset/ETHPy150Open lsaffre/lino/lino/core/store.py RelatedMixin.full_value_from_object/original