aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-06 16:32:24 +0200
committerAlban Gruin2017-09-06 16:32:24 +0200
commit25166bcee501d1e5d72a2d2372cbeb5c3b82eec7 (patch)
tree0aae42f9d0fbe114aecd2b3f0559d459d9713e73 /admin.py
parent773e6e8a82756dae862e730c691c75250a2e4489 (diff)
Ajout d’un champ pour stocker l’ID d’un cours dans Celcat
Diffstat (limited to 'admin.py')
-rw-r--r--admin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin.py b/admin.py
index 9155924..0649845 100644
--- a/admin.py
+++ b/admin.py
@@ -54,12 +54,13 @@ class RoomAdmin(admin.ModelAdmin):
@admin.register(Course)
class CourseAdmin(admin.ModelAdmin):
fieldsets = (
- (None, {"fields": ("name", "type", "timetable", "groups", "rooms", "active",)}),
+ (None, {"fields": ("name", "type", "timetable", "groups", "rooms", "active", "celcat_id",)}),
("Horaires", {"fields": ("begin", "end",)}),
("Remarques", {"fields": ("notes",)}),)
list_display = ("name", "type", "timetable", "begin", "end", "active",)
list_filter = ("type", "timetable__name", "groups", "active",)
ordering = ("begin",)
+ readonly_fields = ("celcat_id",)
@admin.register(CourseDelta)