diff options
author | Alban Gruin | 2017-02-03 10:43:13 +0100 |
---|---|---|
committer | Alban Gruin | 2017-02-03 10:43:13 +0100 |
commit | 8861bddccf458846e12e679704a8514ec2dc2510 (patch) | |
tree | feaf18628e54a71a475fc73f363adf107ffe07f6 /admin.py | |
parent | bfa5715f6deaa71ad51811bd2f59cdd330b860d9 (diff) |
Ajout d'un système de renommage de groupe à la volée pour corriger les défauts de nom de la sourcev0.3.0
Diffstat (limited to 'admin.py')
-rw-r--r-- | admin.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,11 +17,11 @@ class LastUpdateAdmin(admin.ModelAdmin): @admin.register(Group) class GroupAdmin(admin.ModelAdmin): fieldsets = ( - (None, {"fields": ("name", "timetable",)}), + (None, {"fields": ("name", "celcat_name", "timetable",)}), ("Groupes", {"fields": ("mention", "subgroup", "td", "tp",)}),) list_display = ("name", "timetable",) list_filter = ("timetable__name",) - readonly_fields = ("mention", "subgroup", "td", "tp",) + readonly_fields = ("celcat_name", "mention", "subgroup", "td", "tp",) @admin.register(Subscription) |