From 5374466b6fb309dfbeb4a973280ebfdc8b900306 Mon Sep 17 00:00:00 2001 From: Evan Date: Fri, 6 Dec 2024 01:43:47 -0500 Subject: [PATCH] Fix ContestAdmin make_hidden to actually hide contests --- judge/admin/contest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)