From 23ffa2a616e5be224b27537c235a81f16b4328fd Mon Sep 17 00:00:00 2001 From: cahrens Date: Mon, 8 Jul 2013 16:55:32 -0400 Subject: [PATCH] Show note field, update filterable. --- cms/djangoapps/course_creators/admin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cms/djangoapps/course_creators/admin.py b/cms/djangoapps/course_creators/admin.py index 36e74420fd..75cde2ebd9 100644 --- a/cms/djangoapps/course_creators/admin.py +++ b/cms/djangoapps/course_creators/admin.py @@ -12,8 +12,8 @@ class CourseCreatorAdmin(admin.ModelAdmin): """ # Fields to display on the overview page. - list_display = ('username', 'email', 'state', 'state_changed') - readonly_fields = ('username', 'email', 'state_changed') + list_display = ['username', 'email', 'state', 'state_changed', 'note'] + readonly_fields = ['username', 'email', 'state_changed'] # Controls the order on the edit form (without this, read-only fields appear at the end). fieldsets = ( (None, { @@ -21,10 +21,10 @@ class CourseCreatorAdmin(admin.ModelAdmin): }), ) # Fields that filtering support - list_filter = list_display + list_filter = ['state', 'state_changed'] # Fields that search supports. Note that the search term for state has to be # its key (ie, 'g' instead of 'granted'). - search_fields = ['username', 'email', 'state'] + search_fields = ['username', 'email', 'state', 'note'] # Turn off the action bar (we have no bulk actions) actions = None