aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'admin.py')
-rw-r--r--admin.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/admin.py b/admin.py
index 233ed1d..d49c123 100644
--- a/admin.py
+++ b/admin.py
@@ -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 = (