diff options
author | Alban Gruin | 2017-01-22 12:37:56 +0100 |
---|---|---|
committer | Alban Gruin | 2017-01-22 12:37:56 +0100 |
commit | 310c91fcd777a9e7c97379803e41d795a4661be7 (patch) | |
tree | 8da131dceeb256ce2555b88fcd43a48fa27c794f /admin.py | |
parent | 3f0efad5ee4069d5387e742f346f8d782607fa96 (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.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 = ( |