Commit 620c8e37 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Update translation for video model

parent f119fbd0
# Generated by Django 2.2.24 on 2021-07-30 14:15
import courses.videos.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0030_video_file'),
]
operations = [
migrations.RemoveField(
model_name='course',
name='intro_video_en',
),
migrations.RemoveField(
model_name='course',
name='intro_video_es',
),
migrations.RemoveField(
model_name='course',
name='intro_video_pt_br',
),
migrations.RemoveField(
model_name='unit',
name='video_en',
),
migrations.RemoveField(
model_name='unit',
name='video_es',
),
migrations.RemoveField(
model_name='unit',
name='video_pt_br',
),
migrations.AddField(
model_name='video',
name='file_en',
field=models.FileField(default=None, null=True, upload_to=courses.videos.models.get_upload_path),
),
migrations.AddField(
model_name='video',
name='file_es',
field=models.FileField(default=None, null=True, upload_to=courses.videos.models.get_upload_path),
),
migrations.AddField(
model_name='video',
name='file_pt_br',
field=models.FileField(default=None, null=True, upload_to=courses.videos.models.get_upload_path),
),
migrations.AddField(
model_name='video',
name='name_en',
field=models.CharField(max_length=255, null=True),
),
migrations.AddField(
model_name='video',
name='name_es',
field=models.CharField(max_length=255, null=True),
),
migrations.AddField(
model_name='video',
name='name_pt_br',
field=models.CharField(max_length=255, null=True),
),
migrations.AddField(
model_name='video',
name='youtube_id_en',
field=models.CharField(max_length=100, null=True),
),
migrations.AddField(
model_name='video',
name='youtube_id_es',
field=models.CharField(max_length=100, null=True),
),
migrations.AddField(
model_name='video',
name='youtube_id_pt_br',
field=models.CharField(max_length=100, null=True),
),
]
......@@ -8,7 +8,7 @@ from .certification.models import CertificateTemplate
@register(Course)
class CourseTranslationOptions(TranslationOptions):
fields = ('slug', 'name', 'intro_video', 'application',
fields = ('slug', 'name', 'application',
'requirement', 'abstract', 'structure', 'workload',
'course_load', 'pronatec', 'thumbnail', 'home_thumbnail',
'min_percent_to_complete', 'informations', 'description')
......@@ -21,7 +21,7 @@ class LessonTranslationOptions(TranslationOptions):
@register(Unit)
class UnitTranslationOptions(TranslationOptions):
fields = ('title', 'video', 'side_notes', 'chat_room')
fields = ('title', 'side_notes', 'chat_room')
@register(ProfessorMessage)
......
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