This commit is contained in:
cuom1999 2023-05-22 23:27:04 +07:00
parent 57ded6ff5e
commit 1cbd4dee49

View file

@ -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()
)