aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
authorAlban Gruin2017-01-19 14:34:17 +0100
committerAlban Gruin2017-01-19 14:34:17 +0100
commitd07ff320d264e5a0eee20eb7afa2f2a0fab18fb4 (patch)
treec3cbc09379c408e1df99892a2579f4b94a4f7c1d /admin.py
parent0c939d8e893b55ac16168725709adea6512f3f86 (diff)
Affichage des groupes déterminés dans l'administrations
Diffstat (limited to 'admin.py')
-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)