From ffde306a04d3e7a632db06a5b4199abef29d6b66 Mon Sep 17 00:00:00 2001 From: xinwen Date: Mon, 10 Aug 2020 14:45:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(assets):=20=E4=BF=AE=E5=A4=8D=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E5=88=A0=E9=99=A4=E8=B5=84=E4=BA=A7=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/orgs/mixins/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/orgs/mixins/api.py b/apps/orgs/mixins/api.py index 635e415bf..f40f9f7fa 100644 --- a/apps/orgs/mixins/api.py +++ b/apps/orgs/mixins/api.py @@ -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