From 042ea5e137213fd713ee43f3214cce2734f7050d Mon Sep 17 00:00:00 2001 From: Bai Date: Tue, 8 Dec 2020 10:59:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=88=E6=9D=83=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=A0=91API=E8=BF=94=E5=9B=9Eorg=5Fname=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/applications/api/mixin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/applications/api/mixin.py b/apps/applications/api/mixin.py index fe51e1dc7..7833b46ba 100644 --- a/apps/applications/api/mixin.py +++ b/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):