From 03e8fe4574c91c7c7c9b77115fa446a289ac167f Mon Sep 17 00:00:00 2001 From: Cynthia Kiser Date: Sun, 23 May 2021 15:38:29 -0700 Subject: [PATCH] send org_tag for parents and children --- civictechindexadmin/data/api/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/civictechindexadmin/data/api/serializers.py b/civictechindexadmin/data/api/serializers.py index e9060bc..f3d8a21 100644 --- a/civictechindexadmin/data/api/serializers.py +++ b/civictechindexadmin/data/api/serializers.py @@ -56,11 +56,11 @@ def get_affiliated(self, org): def get_parents(self, org): parents = org.get_ancestors() - return [{'slug': n.slug, 'name': n.name, 'image_url': n.image_url} for n in parents if n.depth > 1] + return [{'slug': n.slug, 'name': n.name, 'org_tag': n.org_tag} for n in parents if n.depth > 1] def get_children(self, org): children = org.get_descendants() - return [{'slug': n.slug, 'name': n.name, 'image_url': n.image_url} for n in children if n.depth > 1] + return [{'slug': n.slug, 'name': n.name, 'org_tag': n.org_tag} for n in children if n.depth > 1] class AddOrganizationSerializer(serializers.Serializer):