From e7bc25eea2f412d4856d6de5ebf65128d13b499e Mon Sep 17 00:00:00 2001 From: Serena Li <40174697+acrantel@users.noreply.github.com> Date: Wed, 20 Dec 2023 19:40:21 -0500 Subject: [PATCH] expose tournament round display order field (#712) --- backend/siarnaq/api/compete/test_views.py | 4 ++++ backend/siarnaq/api/episodes/serializers.py | 1 + 2 files changed, 5 insertions(+) diff --git a/backend/siarnaq/api/compete/test_views.py b/backend/siarnaq/api/compete/test_views.py index f4b6d1f17..f4aa62ce9 100644 --- a/backend/siarnaq/api/compete/test_views.py +++ b/backend/siarnaq/api/compete/test_views.py @@ -405,6 +405,7 @@ def test_admin_has_staff_team_tournament_hidden(self): "name": self.r_hidden.name, "maps": None, "release_status": self.r_hidden.release_status, + "display_order": self.r_hidden.display_order, }, "participants": [ { @@ -554,6 +555,7 @@ def test_not_admin_has_self_no_staff_team_tournament_results(self): "name": self.r_results.name, "maps": [self.map.pk], "release_status": self.r_results.release_status, + "display_order": self.r_results.display_order, }, "participants": [ { @@ -632,6 +634,7 @@ def test_not_admin_has_self_no_staff_team_tournament_participants(self): "name": self.r_participants.name, "maps": None, "release_status": self.r_participants.release_status, + "display_order": self.r_participants.display_order, }, "participants": [ { @@ -710,6 +713,7 @@ def test_not_admin_has_self_no_staff_team_tournament_hidden(self): "name": self.r_hidden.name, "maps": None, "release_status": self.r_hidden.release_status, + "display_order": self.r_hidden.display_order, }, "participants": None, "maps": None, diff --git a/backend/siarnaq/api/episodes/serializers.py b/backend/siarnaq/api/episodes/serializers.py index 4453da83d..e6eedbf5e 100644 --- a/backend/siarnaq/api/episodes/serializers.py +++ b/backend/siarnaq/api/episodes/serializers.py @@ -94,6 +94,7 @@ class Meta: "name", "maps", "release_status", + "display_order", ] def to_representation(self, instance):