aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
authorAlban Gruin2017-01-22 15:27:02 +0100
committerAlban Gruin2017-01-22 15:27:02 +0100
commit35ecadcbe283b2c1368141be5bec16d66c443f7c (patch)
tree3201d747c0f43976fd0eda7bbf4cd3b28cf75285 /admin.py
parent6cb64910d0c96f144fef7a42f2b2883474031959 (diff)
Ajout du modèle des inscriptions pour les notifications par email
Diffstat (limited to 'admin.py')
-rw-r--r--admin.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/admin.py b/admin.py
index d49c123..b1edf2f 100644
--- a/admin.py
+++ b/admin.py
@@ -1,5 +1,5 @@
from django.contrib import admin
-from edt.models import Timetable, LastUpdate, Group, Room, Course
+from edt.models import Timetable, LastUpdate, Group, Subscription, Room, Course
@admin.register(Timetable)
@@ -24,6 +24,11 @@ class GroupAdmin(admin.ModelAdmin):
readonly_fields = ("mention", "subgroup", "td", "tp",)
+@admin.register(Subscription)
+class SubscriptionAdmin(admin.ModelAdmin):
+ list_display = ("email", "group", "active",)
+
+
@admin.register(Room)
class RoomAdmin(admin.ModelAdmin):
pass