mirror of https://github.com/jumpserver/jumpserver
commit
98d3a36d98
|
@ -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,)
|
||||
|
||||
|
|
Loading…
Reference in New Issue