aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'admin.py')
-rw-r--r--admin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/admin.py b/admin.py
index 1493b0f..b244eb3 100644
--- a/admin.py
+++ b/admin.py
@@ -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)