fix: 用户列表导出部分字段没翻译

This commit is contained in:
xinwen
2021-08-16 17:28:47 +08:00
committed by 老广
parent 7b4faccf05
commit 9c7adb7a14
3 changed files with 19 additions and 4 deletions

View File

@@ -87,6 +87,9 @@ class UserSerializer(CommonBulkSerializerMixin, serializers.ModelSerializer):
'role_display': {'label': _('Super role name')},
'total_role_display': {'label': _('Total role name')},
'role': {'default': "User"},
'is_wecom_bound': {'label': _('Is wecom bound')},
'is_dingtalk_bound': {'label': _('Is dingtalk bound')},
'is_feishu_bound': {'label': _('Is feishu bound')},
}
def __init__(self, *args, **kwargs):