fix(assets): 修复批量删除资产失败问题

pull/4464/head
xinwen 2020-08-10 14:45:03 +08:00 committed by 老广
parent f1e29a91f7
commit ffde306a04
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ class OrgBulkModelViewSet(CommonApiMixin, OrgQuerySetMixin, BulkModelViewSet):
filtered_count = filtered.count()
if filtered_count == 1:
return True
if qs_count <= filtered_count:
return False
if qs_count > filtered_count:
return True
if self.request.query_params.get('spm', ''):
return True
return False