We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a96f85e commit 09b3eabCopy full SHA for 09b3eab
program/admin.py
@@ -1,6 +1,6 @@
1
from django.contrib import admin
2
3
-from .models import Proposal, ProposalCategory
+from .models import Proposal, ProposalCategory, Program
4
5
6
@admin.register(Proposal)
@@ -24,3 +24,19 @@ class ProposalCategoryAdmin(admin.ModelAdmin):
24
list_display = ["id", "name", "visible"]
25
list_filter = ["visible"]
26
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