Commit 23ffa2a6 by cahrens

Show note field, update filterable.

parent 73f4b1c6
...@@ -12,8 +12,8 @@ class CourseCreatorAdmin(admin.ModelAdmin): ...@@ -12,8 +12,8 @@ class CourseCreatorAdmin(admin.ModelAdmin):
""" """
# Fields to display on the overview page. # Fields to display on the overview page.
list_display = ('username', 'email', 'state', 'state_changed') list_display = ['username', 'email', 'state', 'state_changed', 'note']
readonly_fields = ('username', 'email', 'state_changed') readonly_fields = ['username', 'email', 'state_changed']
# Controls the order on the edit form (without this, read-only fields appear at the end). # Controls the order on the edit form (without this, read-only fields appear at the end).
fieldsets = ( fieldsets = (
(None, { (None, {
...@@ -21,10 +21,10 @@ class CourseCreatorAdmin(admin.ModelAdmin): ...@@ -21,10 +21,10 @@ class CourseCreatorAdmin(admin.ModelAdmin):
}), }),
) )
# Fields that filtering support # 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 # Fields that search supports. Note that the search term for state has to be
# its key (ie, 'g' instead of 'granted'). # 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) # Turn off the action bar (we have no bulk actions)
actions = None actions = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment