fix: 修复系统用户资产导出包含组织名称

pull/6447/head
Bai 3 years ago committed by Jiangjie.Bai
parent d7f587216d
commit 5b741de896

@ -210,10 +210,11 @@ class SystemUserSimpleSerializer(serializers.ModelSerializer):
class RelationMixin(BulkSerializerMixin, serializers.Serializer):
systemuser_display = serializers.ReadOnlyField(label=_("System user name"))
org_name = serializers.ReadOnlyField(label=_("Org name"))
def get_field_names(self, declared_fields, info):
fields = super().get_field_names(declared_fields, info)
fields.extend(['systemuser', "systemuser_display"])
fields.extend(['systemuser', "systemuser_display", "org_name"])
return fields

Loading…
Cancel
Save