From d8f2e56d45a9abe79f52f635bdf210ba35c4d718 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 11 May 2021 16:56:44 +0200 Subject: [PATCH] fix solution str representation --- apps/participation/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/participation/models.py b/apps/participation/models.py index c1926ae..570275d 100644 --- a/apps/participation/models.py +++ b/apps/participation/models.py @@ -561,7 +561,7 @@ class Solution(models.Model): def __str__(self): return _("Solution of team {team} for problem {problem}")\ .format(team=self.participation.team.name, problem=self.problem)\ - + (" " + _("for final") if self.final_solution else "") + + (" " + str(_("for final")) if self.final_solution else "") class Meta: verbose_name = _("solution")