

def value_from_object(self, obj, request):
    v = self.full_value_from_object(obj, request)
    if (v is None):
        return None
    return v.pk

dataset/ETHPy150Open lsaffre/lino/lino/core/store.py OneToOneStoreField.value_from_object/original