feat: 授权应用树API返回org_name字段

This commit is contained in:
Bai
2020-12-08 10:59:07 +08:00
committed by Jiangjie.Bai
parent 2a6f68c7ba
commit 042ea5e137

View File

@@ -88,6 +88,9 @@ class SerializeApplicationToTreeNodeMixin:
def _serialize(self, application):
method_name = f'_serialize_{application.category}'
data = getattr(self, method_name)(application)
data.update({
'org_name': application.org_name
})
return data
def serialize_applications(self, applications):