From 424dee4aea5053e9e39bde55bd1b6fbc55a3bb4b Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Wed, 3 Apr 2024 22:56:45 +0200 Subject: [PATCH] Fix solution path name Signed-off-by: Emmy D'Anello --- participation/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/participation/models.py b/participation/models.py index 2dbddf8..78153d4 100644 --- a/participation/models.py +++ b/participation/models.py @@ -748,7 +748,7 @@ class Participation(models.Model): "

For the first round, you will defend " "your solution of the problem {problem}.

") draw_url = reverse_lazy("draw:index") - solution_url = reverse_lazy("participation:solution_detail", args=(defender_passage.defended_solution.pk,)) + solution_url = reverse_lazy("solution", args=(defender_passage.defended_solution.pk,)) 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 = _("

For the second round, you will defend " "your solution of the problem {problem}.

") draw_url = reverse_lazy("draw:index") - solution_url = reverse_lazy("participation:solution_detail", args=(defender_passage.defended_solution.pk,)) + solution_url = reverse_lazy("solution", args=(defender_passage.defended_solution.pk,)) defender_content = format_lazy(defender_text, draw_url=draw_url, solution_url=solution_url, problem=defender_passage.solution_number)