From 068c6d8253118103bb65ab6ac0e5a45875eb1a7b Mon Sep 17 00:00:00 2001 From: David Moreau Simard Date: Thu, 21 Jun 2018 17:40:31 -0400 Subject: [PATCH] Add a hosts list serializer field for plays This makes the plays return the list of hosts that they are related to. Change-Id: Ice0992a0237a59a37a974ebfb0c12879d4da41e7 --- ara/api/serializers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ara/api/serializers.py b/ara/api/serializers.py index ac7710a..5056d0d 100644 --- a/ara/api/serializers.py +++ b/ara/api/serializers.py @@ -166,6 +166,7 @@ class PlaySerializer(DurationSerializer): model = models.Play fields = '__all__' + hosts = HostSerializer(read_only=True, many=True) results = ResultSerializer(read_only=True, many=True)