From 1b5debc77fd0b20655fda8d966e719d62a8f7381 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 3 Aug 2022 17:29:13 +0200 Subject: [PATCH] fix battery migration --- .../migrations/versions/d7ea9a3b2da1_create_placeholders.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ereuse_devicehub/migrations/versions/d7ea9a3b2da1_create_placeholders.py b/ereuse_devicehub/migrations/versions/d7ea9a3b2da1_create_placeholders.py index 05e09ac3..15aed6d9 100644 --- a/ereuse_devicehub/migrations/versions/d7ea9a3b2da1_create_placeholders.py +++ b/ereuse_devicehub/migrations/versions/d7ea9a3b2da1_create_placeholders.py @@ -78,7 +78,9 @@ def clone_device(device): new_c = clone_device(c) new_c.parent = new_device - placeholder = Placeholder(device=new_device, binding=device, is_abstract=True, owner_id=device.owner_id) + placeholder = Placeholder( + device=new_device, binding=device, is_abstract=True, owner_id=device.owner_id + ) db.session.add(placeholder) tags = [x for x in device.tags]