aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
authorAlban Gruin2017-01-22 18:21:49 +0100
committerAlban Gruin2017-01-22 18:21:49 +0100
commit6a9464882f74bc8a85ad86d098f8b4da04c854ca (patch)
tree155564608e89787629069adc358aa8c812590ed9 /admin.py
parent35ecadcbe283b2c1368141be5bec16d66c443f7c (diff)
Génération automatique d'un token
Diffstat (limited to 'admin.py')
-rw-r--r--admin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/admin.py b/admin.py
index b1edf2f..95b4fd7 100644
--- a/admin.py
+++ b/admin.py
@@ -27,6 +27,7 @@ class GroupAdmin(admin.ModelAdmin):
@admin.register(Subscription)
class SubscriptionAdmin(admin.ModelAdmin):
list_display = ("email", "group", "active",)
+ readonly_fields = ("token",)
@admin.register(Room)