aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
authorAlban Gruin2017-02-03 10:43:13 +0100
committerAlban Gruin2017-02-03 10:43:13 +0100
commit8861bddccf458846e12e679704a8514ec2dc2510 (patch)
treefeaf18628e54a71a475fc73f363adf107ffe07f6 /admin.py
parentbfa5715f6deaa71ad51811bd2f59cdd330b860d9 (diff)
Ajout d'un système de renommage de groupe à la volée pour corriger les défauts de nom de la sourcev0.3.0
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 95b4fd7..509ed42 100644
--- a/admin.py
+++ b/admin.py
@@ -17,11 +17,11 @@ class LastUpdateAdmin(admin.ModelAdmin):
@admin.register(Group)
class GroupAdmin(admin.ModelAdmin):
fieldsets = (
- (None, {"fields": ("name", "timetable",)}),
+ (None, {"fields": ("name", "celcat_name", "timetable",)}),
("Groupes", {"fields": ("mention", "subgroup", "td", "tp",)}),)
list_display = ("name", "timetable",)
list_filter = ("timetable__name",)
- readonly_fields = ("mention", "subgroup", "td", "tp",)
+ readonly_fields = ("celcat_name", "mention", "subgroup", "td", "tp",)
@admin.register(Subscription)