Browse Source

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

pull/5183/head
Bai 4 years ago committed by Jiangjie.Bai
parent
commit
042ea5e137
  1. 3
      apps/applications/api/mixin.py

3
apps/applications/api/mixin.py

@ -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):

Loading…
Cancel
Save