Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-val
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-val
Commits
358c49a9
Unverified
Commit
358c49a9
authored
Jan 30, 2018
by
Mushtaq Ali
Committed by
GitHub
Jan 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #120 from edx/mushtaq/searchable-video-images
Make video images searchable in admin
parents
74ff9841
0efc2529
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
edxval/admin.py
+1
-0
No files found.
edxval/admin.py
View file @
358c49a9
...
...
@@ -38,6 +38,7 @@ class VideoAdmin(admin.ModelAdmin): # pylint: disable=C0111
class
VideoImageAdmin
(
admin
.
ModelAdmin
):
raw_id_fields
=
(
'course_video'
,
)
list_display
=
(
'get_course_video'
,
'image'
,
'generated_images'
)
search_fields
=
(
'id'
,
'course_video__course_id'
,
'course_video__video__edx_video_id'
,
'generated_images'
)
def
get_course_video
(
self
,
obj
):
return
u'"{course_id}" -- "{edx_video_id}" '
.
format
(
...
...
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