Skip to content

Commit 09b3eab

Browse files
committed
Add program admin
1 parent a96f85e commit 09b3eab

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

program/admin.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from django.contrib import admin
22

3-
from .models import Proposal, ProposalCategory
3+
from .models import Proposal, ProposalCategory, Program
44

55

66
@admin.register(Proposal)
@@ -24,3 +24,19 @@ class ProposalCategoryAdmin(admin.ModelAdmin):
2424
list_display = ["id", "name", "visible"]
2525
list_filter = ["visible"]
2626
search_fields = ["name"]
27+
28+
29+
@admin.register(Program)
30+
class ProgramAdmin(admin.ModelAdmin):
31+
list_display = [
32+
"id",
33+
"host",
34+
"title",
35+
"room",
36+
"slot",
37+
"start_at",
38+
"end_at",
39+
"program_type",
40+
]
41+
list_filter = ["program_type", ]
42+
search_fields = ["title", "host__username"]

0 commit comments

Comments
 (0)