aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-07 17:02:27 +0200
committerAlban Gruin2017-09-07 17:02:27 +0200
commit1561cb829a48d49d36242db89fa4490144767065 (patch)
tree7bdfc702f0f23e07eb7cdd383a66aa47c10e6bbd /admin.py
parent36757e937abd7d5aa3434f4c815dfb040e1e3a71 (diff)
Séparation de l’année et de la mention dans le modèle Timetable
Diffstat (limited to 'admin.py')
-rw-r--r--admin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin.py b/admin.py
index 2408623..ca2fed9 100644
--- a/admin.py
+++ b/admin.py
@@ -20,8 +20,8 @@ from .models import Timetable, LastUpdate, Group, Subscription, Room, Course
@admin.register(Timetable)
class TimetableAdmin(admin.ModelAdmin):
- prepopulated_fields = {"slug": ("name",)}
- list_display = ("name", "url",)
+ prepopulated_fields = {"slug": ("year", "name",)}
+ list_display = ("full_name", "url",)
@admin.register(LastUpdate)