From e15f05f323ef88a2227ab2c02e01e423cd94a9c0 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Thu, 16 Dec 2021 21:30:55 -0600 Subject: [PATCH] Fix comment stream link --- judge/models/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/models/comment.py b/judge/models/comment.py index d2d9688..a58ab1d 100644 --- a/judge/models/comment.py +++ b/judge/models/comment.py @@ -105,7 +105,7 @@ class Comment(MPTTModel): try: link = None if self.page.startswith('p:'): - link = reverse('problem_detail', args=(self.page[2:],)) + link = reverse('problem_comments', args=(self.page[2:],)) elif self.page.startswith('c:'): link = reverse('contest_view', args=(self.page[2:],)) elif self.page.startswith('b:'):