Fix solution link

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-04-03 23:06:11 +02:00
parent 424dee4aea
commit 78e8a92c3a
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 255 additions and 255 deletions

File diff suppressed because it is too large Load Diff

View File

@ -744,11 +744,11 @@ class Participation(models.Model):
reporter_passage = pool.passages.get(reporter=self)
defender_text = _("<p>The solutions draw is ended. You can check the result on "
"<a href={draw_url}>this page</a>.</p>"
"<a href='{draw_url}'>this page</a>.</p>"
"<p>For the first round, you will defend "
"<a href='{solution_url}'>your solution of the problem {problem}</a>.</p>")
draw_url = reverse_lazy("draw:index")
solution_url = reverse_lazy("solution", args=(defender_passage.defended_solution.pk,))
solution_url = defender_passage.defended_solution.url
defender_content = format_lazy(defender_text, draw_url=draw_url,
solution_url=solution_url, problem=defender_passage.solution_number)
@ -780,7 +780,7 @@ class Participation(models.Model):
defender_text = _("<p>For the second round, you will defend "
"<a href='{solution_url}'>your solution of the problem {problem}</a>.</p>")
draw_url = reverse_lazy("draw:index")
solution_url = reverse_lazy("solution", args=(defender_passage.defended_solution.pk,))
solution_url = defender_passage.defended_solution.url
defender_content = format_lazy(defender_text, draw_url=draw_url,
solution_url=solution_url, problem=defender_passage.solution_number)