diff options
author | Alban Gruin | 2017-09-09 19:37:12 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-12 21:39:00 +0200 |
commit | c0f19d41c8dfb6d499defcfc63c273bbc8918584 (patch) | |
tree | 652e4890fa7ef820ad5d64b32ffc50cb20f24bc0 /admin.py | |
parent | c5d409e7c38cd5dd5686ce2311928587796349f9 (diff) |
Génération automatique d’un slug pour les modèles Year et Timetable
Diffstat (limited to 'admin.py')
-rw-r--r-- | admin.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |