From 9b5a5abca363791e5bff26e60f3252007f8929a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org>
Date: Wed, 9 Oct 2019 16:21:45 +0200
Subject: [PATCH] FIX: remove did not work if an object is passed

---
 src/caosdb/common/models.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/caosdb/common/models.py b/src/caosdb/common/models.py
index 9c420c8c..264e4c5e 100644
--- a/src/caosdb/common/models.py
+++ b/src/caosdb/common/models.py
@@ -1599,6 +1599,7 @@ class _Properties(list):
         if isinstance(prop, Entity):
             if prop in self:
                 list.remove(self, prop)
+                return
             else:
                 if prop.id is not None:
                     # by id
-- 
GitLab