excluding when it is in one trade action
This commit is contained in:
parent
03cfbfaa35
commit
2e564862e8
|
@ -836,6 +836,7 @@ class Delete(ActionWithMultipleDevices):
|
|||
@post_load
|
||||
def deactivate_device(self, data):
|
||||
for dev in data['devices']:
|
||||
if dev.last_action_trading is None:
|
||||
dev.active = False
|
||||
|
||||
|
||||
|
|
Reference in New Issue