fix: 修复账号备份存在外键search 500 bug

pull/7511/head
feng626 2022-01-17 19:19:35 +08:00 committed by Jiangjie.Bai
parent de74477fd6
commit 005032ea00
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ class AccountBackupPlanExecutionViewSet(
mixins.RetrieveModelMixin, viewsets.GenericViewSet mixins.RetrieveModelMixin, viewsets.GenericViewSet
): ):
serializer_class = serializers.AccountBackupPlanExecutionSerializer serializer_class = serializers.AccountBackupPlanExecutionSerializer
search_fields = ('trigger', 'plan_id') search_fields = ('trigger',)
filterset_fields = search_fields filterset_fields = ('trigger', 'plan_id')
permission_classes = (IsOrgAdmin,) permission_classes = (IsOrgAdmin,)
def get_queryset(self): def get_queryset(self):