fix: 终端删除后,录像存储不能删除问题

pull/7195/head^2
xinwen 2021-11-15 16:29:22 +08:00 committed by Jiangjie.Bai
parent cb1c906db4
commit 9bfbdea508
1 changed files with 1 additions and 1 deletions

View File

@ -164,4 +164,4 @@ class ReplayStorage(CommonStorageModelMixin, CommonModelMixin):
return storage.is_valid(src, target)
def is_use(self):
return Terminal.objects.filter(replay_storage=self.name).exists()
return Terminal.objects.filter(replay_storage=self.name, is_deleted=False).exists()