diff options
Diffstat (limited to 'admin.py')
-rw-r--r-- | admin.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,5 @@ from django.contrib import admin -from edt.models import Timetable, LastUpdate, Group, Room, Course +from edt.models import Timetable, LastUpdate, Group, Subscription, Room, Course @admin.register(Timetable) @@ -24,6 +24,11 @@ class GroupAdmin(admin.ModelAdmin): readonly_fields = ("mention", "subgroup", "td", "tp",) +@admin.register(Subscription) +class SubscriptionAdmin(admin.ModelAdmin): + list_display = ("email", "group", "active",) + + @admin.register(Room) class RoomAdmin(admin.ModelAdmin): pass |