aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
authorAlban Gruin2017-11-17 21:20:37 +0100
committerAlban Gruin2017-11-27 12:11:30 +0100
commit1b0fbf29a484b16de31ac5df1b3fded39be95e97 (patch)
tree7b88adf996cb32494aa4c29e3aeecd5ee6c0778c /admin.py
parentb219f1248fa84eb2b015a5a04f80905dad8904ae (diff)
Ajout d’un champ slug au modèle des salles
Diffstat (limited to 'admin.py')
-rw-r--r--admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin.py b/admin.py
index 7739a95..011ad73 100644
--- a/admin.py
+++ b/admin.py
@@ -55,7 +55,7 @@ class GroupAdmin(admin.ModelAdmin):
@admin.register(Room)
class RoomAdmin(admin.ModelAdmin):
- pass
+ prepopulated_fields = {"slug": ("name",)}
@admin.register(Course)