Fix bug
This commit is contained in:
parent
48adf7e6b8
commit
bb78b743dd
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ class SubmissionSource(SubmissionDetailBase):
|
|||
|
||||
def get_hidden_subtasks(request, submission):
|
||||
contest = submission.contest_object
|
||||
if contest.is_editable_by(request.user):
|
||||
if contest and contest.is_editable_by(request.user):
|
||||
return set()
|
||||
if contest and contest.format.has_hidden_subtasks:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue