Fix bug
This commit is contained in:
parent
57ded6ff5e
commit
1cbd4dee49
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue