excluding when it is in one trade action

This commit is contained in:
Cayo Puigdefabregas 2021-10-06 11:53:41 +02:00
parent 03cfbfaa35
commit 2e564862e8

View file

@ -836,7 +836,8 @@ class Delete(ActionWithMultipleDevices):
@post_load
def deactivate_device(self, data):
for dev in data['devices']:
dev.active = False
if dev.last_action_trading is None:
dev.active = False
class Migrate(ActionWithMultipleDevices):