Unverified Commit 98d3a36d authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #3485 from jumpserver/task_search

[Update] 修复任务列表页面无法搜索问题
parents 1876b7df fedf50f9
......@@ -20,6 +20,8 @@ __all__ = [
class TaskViewSet(viewsets.ModelViewSet):
queryset = Task.objects.all()
filter_fields = ("name",)
search_fields = filter_fields
serializer_class = TaskSerializer
permission_classes = (IsOrgAdmin,)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment