diff --git a/judge/admin/contest.py b/judge/admin/contest.py index 0d8c02551c..c67329d270 100644 --- a/judge/admin/contest.py +++ b/judge/admin/contest.py @@ -237,7 +237,7 @@ def make_visible(self, request, queryset): def make_hidden(self, request, queryset): if not request.user.has_perm('judge.change_contest_visibility'): queryset = queryset.filter(Q(is_private=True) | Q(is_organization_private=True)) - count = queryset.update(is_visible=True) + count = queryset.update(is_visible=False) self.message_user(request, ngettext('%d contest successfully marked as hidden.', '%d contests successfully marked as hidden.', count) % count)