diff --git a/common.py b/common.py index 982b4b2..03a8a97 100644 --- a/common.py +++ b/common.py @@ -479,8 +479,9 @@ class ParentRelation(object): return None def __set__(self, inst, value): + value = baseObject(value) rs = ParentRelationSet(inst, self.predicateName) - rsList = list(rs) + rsList = [baseObject(p) for p in rs] for current in rsList: if current != value: rs.remove(current)