Skip to content

Commit

Permalink
Exclude use_java_folder in django admin
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Nov 16, 2024
1 parent f4cafc7 commit 14bf143
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tin/apps/assignments/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14bf143

Please sign in to comment.