fix: Job audit: Search job list, filter failures based on command

This commit is contained in:
wangruidong
2025-03-31 15:16:40 +08:00
committed by Bryan
parent dc5883576d
commit d2c6e3c7a6
2 changed files with 3 additions and 4 deletions

View File

@@ -64,8 +64,8 @@ class JobLogAuditViewSet(OrgReadonlyModelViewSet):
class JobsAuditViewSet(OrgModelViewSet):
model = Job
search_fields = ['creator__name']
filterset_fields = ['creator__name']
search_fields = ['creator__name', 'args', 'name']
filterset_fields = ['creator__name', 'args', 'name']
serializer_class = JobsAuditSerializer
ordering = ['-is_periodic', '-date_updated']
http_method_names = ['get', 'options', 'patch']