From 9ae74120ed60dbc980c0277e677509c56f4b62d4 Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Mon, 21 Mar 2022 11:58:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7API?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/users/api/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/users/api/user.py b/apps/users/api/user.py index c3fa1ce24..ee3b322bb 100644 --- a/apps/users/api/user.py +++ b/apps/users/api/user.py @@ -109,7 +109,7 @@ class UserViewSet(CommonApiMixin, UserQuerysetMixin, SuggestionMixin, BulkModelV return super().perform_bulk_update(serializer) def allow_bulk_destroy(self, qs, filtered): - return qs.count() != filtered.count() + return filtered.count() < qs.count() def perform_bulk_destroy(self, objects): for obj in objects: