aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'admin.py')
-rw-r--r--admin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/admin.py b/admin.py
index 2fc0e78..48930e0 100644
--- a/admin.py
+++ b/admin.py
@@ -21,6 +21,7 @@ from .models import Timetable, LastUpdate, Group, Room, Course, Year
class YearAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("name",)}
list_display = ("name",)
+ ordering = ("name",)
@admin.register(Timetable)