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
1 changed files with 2 additions and 1 deletions

View File

@ -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