Fix solution link
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
424dee4aea
commit
78e8a92c3a
File diff suppressed because it is too large
Load Diff
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue