diff options
-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) |