fix: 给 view 增加 export 属性 (#10495)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-05-18 18:33:22 +08:00
committed by GitHub
parent 0596b74fa1
commit 2981bfffb1
2 changed files with 5 additions and 7 deletions

View File

@@ -32,6 +32,7 @@ class AccountViewSet(OrgBulkModelViewSet):
'su_from_accounts': 'accounts.view_account',
'clear_secret': 'accounts.change_account',
}
export_as_zip = True
@action(methods=['get'], detail=False, url_path='su-from-accounts')
def su_from_accounts(self, request, *args, **kwargs):