Unverified Commit 358c49a9 by Mushtaq Ali Committed by GitHub

Merge pull request #120 from edx/mushtaq/searchable-video-images

Make video images searchable in admin
parents 74ff9841 0efc2529
......@@ -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(
......
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