mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-12 13:31:56 +00:00
perf: celery task search (#9477)
Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
@@ -106,6 +106,8 @@ class CeleryTaskViewSet(
|
|||||||
mixins.ListModelMixin, mixins.DestroyModelMixin,
|
mixins.ListModelMixin, mixins.DestroyModelMixin,
|
||||||
viewsets.GenericViewSet
|
viewsets.GenericViewSet
|
||||||
):
|
):
|
||||||
|
filterset_fields = ('id', 'name')
|
||||||
|
search_fields = filterset_fields
|
||||||
serializer_class = CeleryTaskSerializer
|
serializer_class = CeleryTaskSerializer
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
|
Reference in New Issue
Block a user