[Update] 修复页面bug和popover的问题

This commit is contained in:
ibuler
2019-09-12 11:17:15 +08:00
parent 444f494c0b
commit 8ddda8e5af
13 changed files with 52 additions and 23 deletions

View File

@@ -35,6 +35,10 @@ class OrgBulkModelViewSet(IDInCacheFilterMixin, BulkModelViewSet):
return queryset
def allow_bulk_destroy(self, qs, filtered):
if qs.count() <= filtered.count():
return False
if self.request.query_params.get('spm', ''):
return True
return False