aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
authorAlban Gruin2017-10-19 21:38:40 +0200
committerAlban Gruin2017-10-19 21:38:40 +0200
commite983619333a715bbc35deecf019a95addb5b6009 (patch)
tree0b822063a033b74d4fe186fb631ccbc70b0cc6d1 /admin.py
parent781ba0419a5e7bba423c922180c2c2db2327543a (diff)
Suppression des champs retirés de l’interface d’administration.
La longueur du champ sous-groupe est maintenant fixée à 16.
Diffstat (limited to 'admin.py')
-rw-r--r--admin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin.py b/admin.py
index e17948a..c93b6b3 100644
--- a/admin.py
+++ b/admin.py
@@ -44,12 +44,12 @@ class TimetableAdmin(admin.ModelAdmin):
class GroupAdmin(admin.ModelAdmin):
fieldsets = (
(None, {"fields": ("name", "celcat_name", "timetable", "hidden",)}),
- ("Groupes", {"fields": ("mention", "subgroup", "td", "tp", "parent",)}),)
+ ("Groupes", {"fields": ("mention", "subgroup",)}),)
list_display = ("name", "timetable", "hidden",)
list_editable = ("hidden",)
list_filter = ("timetable",)
ordering = ("timetable",)
- readonly_fields = ("celcat_name", "mention", "subgroup", "td", "tp",)
+ readonly_fields = ("celcat_name", "mention",)
actions = (make_hidden, make_visible,)