perf: account history record only secret

This commit is contained in:
feng626
2022-10-09 17:43:13 +08:00
committed by 老广
parent 237e7b22fb
commit cd98ec4cac
3 changed files with 94 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ __all__ = ['AccountHistoryViewSet', 'AccountHistorySecretsViewSet']
class AccountHistoryFilterSet(AccountFilterSet):
class Meta:
model = Account.history.model
fields = AccountFilterSet.Meta.fields
fields = ['id', 'secret_type']
class AccountHistoryViewSet(AccountViewSet):