diff --git a/apps/tournament/views.py b/apps/tournament/views.py index db5294b..6d36a74 100644 --- a/apps/tournament/views.py +++ b/apps/tournament/views.py @@ -165,6 +165,7 @@ class TeamDetailView(LoginRequiredMixin, DetailView): context = super().get_context_data(**kwargs) context["title"] = _("Information about team") + context["ordered_solutions"] = self.object.solutions.order_by('problem').all() context["team_users_emails"] = [user.email for user in self.object.users.all()] return context diff --git a/templates/tournament/team_detail.html b/templates/tournament/team_detail.html index 072a30b..cc7b19d 100644 --- a/templates/tournament/team_detail.html +++ b/templates/tournament/team_detail.html @@ -125,7 +125,7 @@ {% if team.solutions.count %}