Commit fedf50f9 authored by jym503558564's avatar jym503558564

[Update] 修复任务列表页面无法搜索问题

parent 1876b7df
...@@ -20,6 +20,8 @@ __all__ = [ ...@@ -20,6 +20,8 @@ __all__ = [
class TaskViewSet(viewsets.ModelViewSet): class TaskViewSet(viewsets.ModelViewSet):
queryset = Task.objects.all() queryset = Task.objects.all()
filter_fields = ("name",)
search_fields = filter_fields
serializer_class = TaskSerializer serializer_class = TaskSerializer
permission_classes = (IsOrgAdmin,) 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