Commit 2242cd07 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Translate Video model

parent 1632e2f3
......@@ -2,7 +2,7 @@ from modeltranslation.translator import register, TranslationOptions
from .models import Course, Lesson, Unit, ProfessorMessage
from .course_material.models import CourseMaterial, File
from .stats.models import AccessibleArea
#from .videos.models import VideoFile
from .videos.models import Video
from .certification.models import CertificateTemplate
......@@ -51,6 +51,6 @@ class CertificateTemplateTranslationOptions(TranslationOptions):
'organization_name', 'text')
#class VideoFileTranslationOptions(TranslationOptions):
# fields = ('name', 'file', 'video')
class VideoTranslationOptions(TranslationOptions):
fields = ('name', 'youtube_id', 'file',)
from django.apps import AppConfig
class VideosConfig(AppConfig):
name = 'videos'
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