Merge pull request #4216 from jumpserver/dev_org

feat(Cloud): 组织管理ViewSet添加搜索字段
pull/4242/head
BaiJiangJie 4 years ago committed by GitHub
commit 8f347eee4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,)

Loading…
Cancel
Save