diff options
author | Alban Gruin | 2017-09-09 19:37:12 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-09 19:37:12 +0200 |
commit | 373a20aa44620db4032e64a2a781afd2f558efb4 (patch) | |
tree | 3b96d6e95487f4bc041d614a926eca240400231d /admin.py | |
parent | d97eb1ee4b362153a3dec7bc8e860d0e8b5ca800 (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) |