diff --git a/judge/comments.py b/judge/comments.py index 5a38380..88f65e6 100644 --- a/judge/comments.py +++ b/judge/comments.py @@ -217,7 +217,7 @@ class CommentedDetailView(TemplateResponseMixin, SingleObjectMixin, View): if self.request.user.is_authenticated: context["is_new_user"] = ( not self.request.user.is_staff - and not profile.submission_set.filter( + and not self.request.profile.submission_set.filter( points=F("problem__points") ).exists() )