diff options
author | Alban Gruin | 2017-09-10 11:59:32 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-10 11:59:32 +0200 |
commit | faef4e56c12199ca4c161319acdfeaeb6f456080 (patch) | |
tree | f2586e768c24756d43bf072a4904e0e2ad9fba87 /admin.py | |
parent | 7a7fa10880479cc63df5ae644314caac2462bd4c (diff) |
Filtrage des cours et des groupes par l’emploi du temps et non par son nom
Diffstat (limited to 'admin.py')
-rw-r--r-- | admin.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -44,7 +44,8 @@ class GroupAdmin(admin.ModelAdmin): (None, {"fields": ("name", "celcat_name", "timetable",)}), ("Groupes", {"fields": ("mention", "subgroup", "td", "tp", "parent",)}),) list_display = ("name", "timetable",) - list_filter = ("timetable__name",) + list_filter = ("timetable",) + ordering = ("timetable",) readonly_fields = ("celcat_name", "mention", "subgroup", "td", "tp",) @@ -60,5 +61,5 @@ class CourseAdmin(admin.ModelAdmin): ("Horaires", {"fields": ("begin", "end",)}), ("Remarques", {"fields": ("notes",)}),) list_display = ("name", "type", "timetable", "begin", "end",) - list_filter = ("type", "timetable__name", "groups",) + list_filter = ("type", "timetable", "groups",) ordering = ("begin",) |