fixing add hdd to lot
This commit is contained in:
parent
a09e087b0e
commit
35dd08c9c8
|
@ -306,7 +306,7 @@ class LotDeviceView(LotBaseChildrenView):
|
|||
dev_qry = Device.query.filter(Device.id.in_(ids)).filter(Device.owner == g.user)
|
||||
|
||||
for dev in dev_qry:
|
||||
if isinstance(dev, DataStorage) and dev.parent:
|
||||
if isinstance(dev, DataStorage) and not dev.orphan:
|
||||
continue
|
||||
devices.add(dev)
|
||||
|
||||
|
|
Reference in New Issue