diff options
author | Alban Gruin | 2017-01-19 14:34:17 +0100 |
---|---|---|
committer | Alban Gruin | 2017-01-19 14:34:17 +0100 |
commit | d07ff320d264e5a0eee20eb7afa2f2a0fab18fb4 (patch) | |
tree | c3cbc09379c408e1df99892a2579f4b94a4f7c1d /admin.py | |
parent | 0c939d8e893b55ac16168725709adea6512f3f86 (diff) |
Affichage des groupes déterminés dans l'administrations
Diffstat (limited to 'admin.py')
-rw-r--r-- | admin.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |