diff options
Diffstat (limited to 'admin.py')
-rw-r--r-- | admin.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,5 @@ from django.contrib import admin -from edt.models import Timetable, Group, Room, Course +from edt.models import Timetable, LastUpdate, Group, Room, Course @admin.register(Timetable) @@ -8,6 +8,12 @@ class TimetableAdmin(admin.ModelAdmin): list_display = ("name", "url",) +@admin.register(LastUpdate) +class LastUpdateAdmin(admin.ModelAdmin): + list_display = ("timetable", "week", "year", "date",) + list_filter = ("timetable__name",) + + @admin.register(Group) class GroupAdmin(admin.ModelAdmin): fieldsets = ( |