Commit 541e2156 by Mushtaq Ali Committed by muzaffaryousaf

rename to transcript from transcription

parent 1ace280d
......@@ -2,7 +2,7 @@ from django.contrib import admin
from VEDA_OS01.models import (
Course, Video, Encode, URL, Destination, Institution, VedaUpload,
TranscriptionPreferences
TranscriptPreferences
)
......@@ -103,8 +103,8 @@ class VideoUploadAdmin(admin.ModelAdmin):
]
class TranscriptionPreferencesAdmin(admin.ModelAdmin):
model = TranscriptionPreferences
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(TranscriptionPreferences, TranscriptionPreferencesAdmin)
admin.site.register(TranscriptPreferences, TranscriptPreferencesAdmin)
......@@ -431,7 +431,7 @@ class VedaUpload (models.Model):
)
class TranscriptionProviderType(object):
class TranscriptProvider(object):
"""
3rd party transcript providers.
"""
......@@ -444,7 +444,7 @@ class TranscriptionProviderType(object):
)
class TranscriptionPreferences(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('Transcription 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 = 'Transcription preferences'
verbose_name_plural = 'Transcript preferences'
def __unicode__(self):
return u'{org} - {provider}'.format(org=self.org, provider=self.provider)
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