Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
23ffa2a6
Commit
23ffa2a6
authored
Jul 08, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show note field, update filterable.
parent
73f4b1c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cms/djangoapps/course_creators/admin.py
+4
-4
No files found.
cms/djangoapps/course_creators/admin.py
View file @
23ffa2a6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment