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
49df2fe1
Unverified
Commit
49df2fe1
authored
Jan 29, 2018
by
M. Rehan
Committed by
GitHub
Jan 29, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #118 from edx/mrehan/video-transcript-admin
improve video transcripts admin
parents
727e643d
0a265287
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
edxval/admin.py
+11
-1
No files found.
edxval/admin.py
View file @
49df2fe1
...
...
@@ -69,9 +69,19 @@ class CourseVideoAdmin(admin.ModelAdmin):
class
VideoTranscriptAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'video'
,
'language_code'
,
'provider'
,
'file_format'
)
raw_id_fields
=
(
'video'
,)
list_display
=
(
'get_video'
,
'language_code'
,
'provider'
,
'file_format'
)
search_fields
=
(
'id'
,
'video__edx_video_id'
,
'language_code'
)
def
get_video
(
self
,
transcript
):
return
transcript
.
video
.
edx_video_id
if
getattr
(
transcript
,
'video'
,
False
)
else
''
get_video
.
admin_order_field
=
'video'
get_video
.
short_description
=
'Video'
model
=
VideoTranscript
verbose_name
=
'Video Transcript'
verbose_name_plural
=
'Video Transcripts'
class
TranscriptPreferenceAdmin
(
admin
.
ModelAdmin
):
...
...
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