Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-video-pipeline
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-video-pipeline
Commits
541e2156
Commit
541e2156
authored
Aug 03, 2017
by
Mushtaq Ali
Committed by
muzaffaryousaf
Sep 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename to transcript from transcription
parent
1ace280d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
VEDA_OS01/admin.py
+4
-4
VEDA_OS01/models.py
+4
-4
No files found.
VEDA_OS01/admin.py
View file @
541e2156
...
...
@@ -2,7 +2,7 @@ from django.contrib import admin
from
VEDA_OS01.models
import
(
Course
,
Video
,
Encode
,
URL
,
Destination
,
Institution
,
VedaUpload
,
Transcript
ion
Preferences
TranscriptPreferences
)
...
...
@@ -103,8 +103,8 @@ class VideoUploadAdmin(admin.ModelAdmin):
]
class
Transcript
ion
PreferencesAdmin
(
admin
.
ModelAdmin
):
model
=
Transcript
ion
Preferences
class
TranscriptPreferencesAdmin
(
admin
.
ModelAdmin
):
model
=
TranscriptPreferences
admin
.
site
.
register
(
Course
,
CourseAdmin
)
...
...
@@ -114,4 +114,4 @@ admin.site.register(URL, URLAdmin)
admin
.
site
.
register
(
Destination
,
DestinationAdmin
)
admin
.
site
.
register
(
Institution
,
InstitutionAdmin
)
admin
.
site
.
register
(
VedaUpload
,
VideoUploadAdmin
)
admin
.
site
.
register
(
Transcript
ionPreferences
,
Transcription
PreferencesAdmin
)
admin
.
site
.
register
(
Transcript
Preferences
,
Transcript
PreferencesAdmin
)
VEDA_OS01/models.py
View file @
541e2156
...
...
@@ -431,7 +431,7 @@ class VedaUpload (models.Model):
)
class
Transcript
ionProviderType
(
object
):
class
Transcript
Provider
(
object
):
"""
3rd party transcript providers.
"""
...
...
@@ -444,7 +444,7 @@ class TranscriptionProviderType(object):
)
class
Transcript
ion
Preferences
(
TimeStampedModel
):
class
TranscriptPreferences
(
TimeStampedModel
):
"""
Model to contain third party transcription service provider preferances.
"""
...
...
@@ -453,13 +453,13 @@ class TranscriptionPreferences(TimeStampedModel):
max_length
=
50
,
help_text
=
'This value must match the value of organization in studio/edx-platform.'
)
provider
=
models
.
CharField
(
'Transcript
ion provider'
,
max_length
=
50
,
choices
=
TranscriptionProviderType
.
CHOICES
)
provider
=
models
.
CharField
(
'Transcript
provider'
,
max_length
=
50
,
choices
=
TranscriptProvider
.
CHOICES
)
api_key
=
models
.
CharField
(
'API key'
,
max_length
=
255
)
api_secret
=
models
.
CharField
(
'API secret'
,
max_length
=
255
,
null
=
True
,
blank
=
True
)
class
Meta
:
unique_together
=
(
'org'
,
'provider'
)
verbose_name_plural
=
'Transcript
ion
preferences'
verbose_name_plural
=
'Transcript preferences'
def
__unicode__
(
self
):
return
u'{org} - {provider}'
.
format
(
org
=
self
.
org
,
provider
=
self
.
provider
)
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