aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--admin.py4
1 files changed, 3 insertions, 1 deletions
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)