fix: swagger (#9031)

Co-authored-by: feng <1304903146@qq.com>
pull/9034/head
fit2bot 2022-11-09 13:34:29 +08:00 committed by GitHub
parent 2d479d1ffa
commit 6ef5154d4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ class ChangeSecretAutomationViewSet(OrgBulkModelViewSet):
class ChangeSecretRecordViewSet(mixins.ListModelMixin, OrgGenericViewSet):
serializer_class = serializers.ChangeSecretRecordSerializer
filter_fields = ['username', 'asset', 'reason', 'execution']
search_fields = ['username', 'reason', 'asset__hostname']
filter_fields = ['asset', 'execution_id']
search_fields = ['asset__hostname']
def get_queryset(self):
return ChangeSecretRecord.objects.all()