From 73d9db3a88e4ae9794e355d3a1199cfa8a799a96 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 28 Oct 2020 22:15:28 +0100 Subject: [PATCH] fixing bug moving tags --- ereuse_devicehub/resources/device/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/resources/device/views.py b/ereuse_devicehub/resources/device/views.py index 8ea09d7e..1542c548 100644 --- a/ereuse_devicehub/resources/device/views.py +++ b/ereuse_devicehub/resources/device/views.py @@ -209,9 +209,9 @@ class DeviceMergeView(View): # Moving the tags from `with_device` to `base_device` # Union of tags the device had plus the (potentially) new ones - self.base_device.tags |= self.with_device.tags + self.base_device.tags.update([x for x in self.with_device.tags]) self.with_device.tags.clear() # We don't want to add the transient dummy tags - # db.session.add(self.with_device) + db.session.add(self.with_device) # Moving the actions from `with_device` to `base_device` for action in with_actions_one: