diff options
author | Alban Gruin | 2017-10-19 21:38:40 +0200 |
---|---|---|
committer | Alban Gruin | 2017-10-22 13:16:02 +0200 |
commit | 05b8c81e21dbd33680683238ee044d20a9882a04 (patch) | |
tree | 064f9b818b2e4d4caf6e6f49f5819defe6c4d997 /admin.py | |
parent | 044e7412856aeefa3c82b39130aa8df6582a0826 (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.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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,) |