From d07ff320d264e5a0eee20eb7afa2f2a0fab18fb4 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Thu, 19 Jan 2017 14:34:17 +0100 Subject: Affichage des groupes déterminés dans l'administrations --- admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin.py b/admin.py index 5583967..19a1525 100644 --- a/admin.py +++ b/admin.py @@ -11,9 +11,11 @@ class TimetableAdmin(admin.ModelAdmin): @admin.register(Group) class GroupAdmin(admin.ModelAdmin): fieldsets = ( - (None, {"fields": ("name", "timetable",)}),) + (None, {"fields": ("name", "timetable",)}), + ("Groupes", {"fields": ("mention", "subgroup", "td", "tp",)}),) list_display = ("name", "timetable",) list_filter = ("timetable__name",) + readonly_fields = ("mention", "subgroup", "td", "tp",) @admin.register(Room) -- cgit v1.2.1