diff --git a/oioioi/contests/utils.py b/oioioi/contests/utils.py index 646f34156..027343004 100755 --- a/oioioi/contests/utils.py +++ b/oioioi/contests/utils.py @@ -614,6 +614,7 @@ def get_submission_message(request): def is_contest_archived(request): return ( hasattr(request, 'contest') + and hasattr(request.contest, 'is_archived') and request.contest.is_archived )