From 14bf1434fa7f4656ef623f4ba45965aae3a000da Mon Sep 17 00:00:00 2001 From: JasonGrace2282 Date: Sat, 16 Nov 2024 10:50:32 -0500 Subject: [PATCH] Exclude use_java_folder in django admin --- tin/apps/assignments/admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tin/apps/assignments/admin.py b/tin/apps/assignments/admin.py index c70e8df7..3e4ab779 100644 --- a/tin/apps/assignments/admin.py +++ b/tin/apps/assignments/admin.py @@ -71,6 +71,9 @@ class LanguageAdmin(admin.ModelAdmin): list_filter = ("language",) actions = ["make_deprecated"] + # prevent someone from accidentally using this + exclude = ("use_java_folder",) + @admin.action(description="Mark languages as deprecated") def make_deprecated(self, request, queryset) -> None: changed = 0