From caf312c5be7c00505754f0a613b965dbfcc6a6b4 Mon Sep 17 00:00:00 2001 From: Bai Date: Wed, 1 Jul 2020 14:38:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(Cloud):=20=E7=BB=84=E7=BB=87=E7=AE=A1?= =?UTF-8?q?=E7=90=86ViewSet=E6=B7=BB=E5=8A=A0=E6=90=9C=E7=B4=A2=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/orgs/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/orgs/api.py b/apps/orgs/api.py index 466ac7254..448c1dab0 100644 --- a/apps/orgs/api.py +++ b/apps/orgs/api.py @@ -22,6 +22,8 @@ logger = get_logger(__file__) class OrgViewSet(BulkModelViewSet): + filter_fields = ('name',) + search_fields = ('name', 'comment') queryset = Organization.objects.all() serializer_class = OrgSerializer permission_classes = (IsSuperUserOrAppUser,)