fix: 修复导出账号历史翻译信息

pull/10197/head^2
Bai 2023-03-16 11:15:47 +08:00 committed by Jiangjie.Bai
parent 927251902c
commit 0747cf7c5e
1 changed files with 8 additions and 1 deletions

View File

@ -135,8 +135,15 @@ class AccountHistorySerializer(serializers.ModelSerializer):
class Meta: class Meta:
model = Account.history.model model = Account.history.model
fields = ['id', 'secret', 'secret_type', 'version', 'history_date', 'history_user'] fields = [
'id', 'secret', 'secret_type', 'version', 'history_date',
'history_user'
]
read_only_fields = fields read_only_fields = fields
extra_kwargs = {
'history_user': {'label': _('User')},
'history_date': {'label': _('Date')},
}
class AccountTaskSerializer(serializers.Serializer): class AccountTaskSerializer(serializers.Serializer):