Skip to content

Commit

Permalink
send org_tag for parents and children
Browse files Browse the repository at this point in the history
  • Loading branch information
cnk committed May 23, 2021
1 parent fe0b3d5 commit 03e8fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions civictechindexadmin/data/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 03e8fe4

Please sign in to comment.