feat(event): option to disable an event

This commit is contained in:
2026-10-16 00:18:36 +02:00
parent b837abdba0
commit 15ab9a14ac
8 changed files with 89 additions and 9 deletions
+3 -1
View File
@@ -5,7 +5,9 @@ from .models import Event
@admin.register(Event)
class EventAdmin(admin.ModelAdmin):
list_display = ["name", "path", "created_at"]
list_display = ["name", "path", "is_available", "created_at"]
list_editable = ["is_available"]
list_filter = ["is_available"]
search_fields = ["name", "path"]
prepopulated_fields = {"path": ("name",)}
readonly_fields = ["created_at", "updated_at"]