diff options
Diffstat (limited to 'admin.py')
-rw-r--r-- | admin.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -20,14 +20,15 @@ from .models import Timetable, LastUpdate, Group, Subscription, Room, Course, Ye @admin.register(Year) class YearAdmin(admin.ModelAdmin): - pass + prepopulated_fields = {"slug": ("name",)} + list_display = ("name",) @admin.register(Timetable) class TimetableAdmin(admin.ModelAdmin): prepopulated_fields = {"slug": ("name",)} list_display = ("name", "year", "url",) - list_filter = ("year",) + list_filter = ("year__name",) @admin.register(LastUpdate) |