1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-24 03:02:23 +00:00

fix solution str representation

This commit is contained in:
Yohann D'ANELLO 2021-05-11 16:56:44 +02:00
parent ba6a6338f5
commit d8f2e56d45
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -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")