perf: Job api add filter options (#13610)

Co-authored-by: feng <1304903146@qq.com>
pull/13612/head
fit2bot 2024-07-04 16:03:51 +08:00 committed by GitHub
parent 823d9af91d
commit 50d196eda4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ def merge_nodes_and_assets(nodes, assets, user):
class JobViewSet(OrgBulkModelViewSet): class JobViewSet(OrgBulkModelViewSet):
serializer_class = JobSerializer serializer_class = JobSerializer
filterset_fields = ('name', 'type')
search_fields = ('name', 'comment') search_fields = ('name', 'comment')
model = Job model = Job