aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
authorAlban Gruin2018-09-06 21:46:51 +0200
committerAlban Gruin2018-09-06 21:46:51 +0200
commit676345434415d40363c80960484abf0295ca800a (patch)
tree76c0f71fd86f19962812a63da109bf79ebd2d43c /admin.py
parent6b8ea6615de6000ea14396fc2d31eb5c6cb159f9 (diff)
parentb4fde18263de491650c71bd31dffe3c324e97879 (diff)
Merge branch 'stable/0.14.z' into prod/pa1ch/0.y.zv0.14.0-pa1chprod/pa1ch/0.y.z
Diffstat (limited to 'admin.py')
-rw-r--r--admin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/admin.py b/admin.py
index def84f0..0dc7987 100644
--- a/admin.py
+++ b/admin.py
@@ -58,13 +58,15 @@ class GroupAdmin(admin.ModelAdmin):
list_editable = ("hidden",)
list_filter = ("source__timetables",)
ordering = ("source", "name",)
- readonly_fields = ("celcat_name", "mention", "semester", "subgroup",)
+ readonly_fields = ("celcat_name",)
actions = (make_hidden, make_visible,)
@admin.register(Room)
class RoomAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("name",)}
+ list_display = ("name",)
+ ordering = ("name",)
@admin.register(Course)