fix delete device
This commit is contained in:
parent
924d9941bc
commit
7db53a5779
|
@ -930,6 +930,10 @@ class Delete(ActionWithMultipleDevicesCheckingOwner):
|
||||||
for dev in data['devices']:
|
for dev in data['devices']:
|
||||||
if dev.last_action_trading is None:
|
if dev.last_action_trading is None:
|
||||||
dev.active = False
|
dev.active = False
|
||||||
|
if dev.binding:
|
||||||
|
dev.binding.device.active = False
|
||||||
|
if dev.placeholder:
|
||||||
|
dev.placeholder.device.active = False
|
||||||
|
|
||||||
|
|
||||||
class Migrate(ActionWithMultipleDevices):
|
class Migrate(ActionWithMultipleDevices):
|
||||||
|
|
Reference in New Issue