diff --git a/participation/models.py b/participation/models.py index c3bc7af..2dbddf8 100644 --- a/participation/models.py +++ b/participation/models.py @@ -750,19 +750,19 @@ class Participation(models.Model): draw_url = reverse_lazy("draw:index") solution_url = reverse_lazy("participation:solution_detail", args=(defender_passage.defended_solution.pk,)) defender_content = format_lazy(defender_text, draw_url=draw_url, - solution_url=solution_url, problem=defender_passage.problem) + solution_url=solution_url, problem=defender_passage.solution_number) opponent_text = _("
You will oppose the solution of the team {opponent} on the problem {problem}. " "You can upload your synthesis sheet on this page.
") passage_url = reverse_lazy("participation:passage_detail", args=(opponent_passage.pk,)) opponent_content = format_lazy(opponent_text, opponent=opponent_passage.defender.team.trigram, - problem=opponent_passage.problem, passage_url=passage_url) + problem=opponent_passage.solution_number, passage_url=passage_url) reporter_text = _("You will report the solution of the team {reporter} on the problem {problem}. " "You can upload your synthesis sheet on this page.
") passage_url = reverse_lazy("participation:passage_detail", args=(reporter_passage.pk,)) reporter_content = format_lazy(reporter_text, reporter=reporter_passage.defender.team.trigram, - problem=reporter_passage.problem, passage_url=passage_url) + problem=reporter_passage.solution_number, passage_url=passage_url) content = defender_content + opponent_content + reporter_content informations.append({ @@ -782,19 +782,19 @@ class Participation(models.Model): draw_url = reverse_lazy("draw:index") solution_url = reverse_lazy("participation:solution_detail", args=(defender_passage.defended_solution.pk,)) defender_content = format_lazy(defender_text, draw_url=draw_url, - solution_url=solution_url, problem=defender_passage.problem) + solution_url=solution_url, problem=defender_passage.solution_number) opponent_text = _("You will oppose the solution of the team {opponent} on the problem {problem}. " "You can upload your synthesis sheet on this page.
") passage_url = reverse_lazy("participation:passage_detail", args=(opponent_passage.pk,)) opponent_content = format_lazy(opponent_text, opponent=opponent_passage.defender.team.trigram, - problem=opponent_passage.problem, passage_url=passage_url) + problem=opponent_passage.solution_number, passage_url=passage_url) reporter_text = _("You will report the solution of the team {reporter} on the problem {problem}. " "You can upload your synthesis sheet on this page.
") passage_url = reverse_lazy("participation:passage_detail", args=(reporter_passage.pk,)) reporter_content = format_lazy(reporter_text, reporter=reporter_passage.defender.team.trigram, - problem=reporter_passage.problem, passage_url=passage_url) + problem=reporter_passage.solution_number, passage_url=passage_url) content = defender_content + opponent_content + reporter_content informations.append({