aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
authorAlban Gruin2017-01-22 12:37:56 +0100
committerAlban Gruin2017-01-22 12:37:56 +0100
commit310c91fcd777a9e7c97379803e41d795a4661be7 (patch)
tree8da131dceeb256ce2555b88fcd43a48fa27c794f /admin.py
parent3f0efad5ee4069d5387e742f346f8d782607fa96 (diff)
Stockage de la date de dernière mise à jour d'un emploi du temps par semaine et année
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 = (