summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-02-21 12:39:48 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-02-21 12:39:48 (GMT)
commit4c3caf0d20e6fc2e2e0baa3397015fd5345a74d6 (patch)
tree336cd4a8000fab3696a93dbafcf567ab0bc2c12c
parentaa347b3cbe63e3b9ec08a88c1546874fbbc408b0 (diff)
downloadpolynum-blackboard-4c3caf0d20e6fc2e2e0baa3397015fd5345a74d6.zip
polynum-blackboard-4c3caf0d20e6fc2e2e0baa3397015fd5345a74d6.tar.gz
polynum-blackboard-4c3caf0d20e6fc2e2e0baa3397015fd5345a74d6.tar.bz2
admin: show course_code as read only, add it to list_display
-rw-r--r--polynum_blackboard/admin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/polynum_blackboard/admin.py b/polynum_blackboard/admin.py
index 2fa424d..f754a03 100644
--- a/polynum_blackboard/admin.py
+++ b/polynum_blackboard/admin.py
@@ -6,9 +6,9 @@ import models
class BlackBoardPushAdmin(admin.ModelAdmin):
actions = [ 'relaunch' ]
- readonly_fields = [ 'request', 'course_name', 'visible_to_students',
+ readonly_fields = [ 'request', 'course_code', 'course_name', 'visible_to_students',
'sent', 'failure' ]
- list_display = [ 'created_on', 'request_id', 'course_name', 'visible_to_students', 'sent', 'failure' ]
+ list_display = [ 'created_on', 'request_id', 'course_code', 'course_name', 'visible_to_students', 'sent', 'failure' ]
def request_id(self, instance):
return instance.request and instance.request.id