Skip to content
Snippets Groups Projects
Commit 42cddd02 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Merge branch 'fix_remove_property' into 'dev'

FIX: remove did not work if an object is passed

See merge request caosdb/caosdb-pylib!8
parents 1bcd3e79 9b5a5abc
Branches
Tags
No related merge requests found
...@@ -1599,6 +1599,7 @@ class _Properties(list): ...@@ -1599,6 +1599,7 @@ class _Properties(list):
if isinstance(prop, Entity): if isinstance(prop, Entity):
if prop in self: if prop in self:
list.remove(self, prop) list.remove(self, prop)
return
else: else:
if prop.id is not None: if prop.id is not None:
# by id # by id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment