Merge pull request #12366 from jumpserver/pr@dev@command

fix: 命令组模糊搜索,500
pull/12369/head
huailei 2023-12-19 15:07:50 +08:00 committed by GitHub
commit 1335556272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ __all__ = ['CommandFilterACLViewSet', 'CommandGroupViewSet']
class CommandGroupViewSet(OrgBulkModelViewSet):
model = models.CommandGroup
filterset_fields = ('name', 'command_filters')
search_fields = filterset_fields
search_fields = ('name',)
serializer_class = serializers.CommandGroupSerializer