Commit 52897bff authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Add migration for translated fields

parent fedbeb3b
# Generated by Django 2.2.19 on 2021-03-23 17:14
import autoslug.fields
import courses.utils
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('courses', '0020_auto_20210205_1703'),
]
operations = [
migrations.AddField(
model_name='course',
name='abstract_en',
field=models.TextField(blank=True, null=True, verbose_name='Abstract'),
),
migrations.AddField(
model_name='course',
name='abstract_es',
field=models.TextField(blank=True, null=True, verbose_name='Abstract'),
),
migrations.AddField(
model_name='course',
name='abstract_pt_br',
field=models.TextField(blank=True, null=True, verbose_name='Abstract'),
),
migrations.AddField(
model_name='course',
name='application_en',
field=models.TextField(blank=True, null=True, verbose_name='Application'),
),
migrations.AddField(
model_name='course',
name='application_es',
field=models.TextField(blank=True, null=True, verbose_name='Application'),
),
migrations.AddField(
model_name='course',
name='application_pt_br',
field=models.TextField(blank=True, null=True, verbose_name='Application'),
),
migrations.AddField(
model_name='course',
name='course_load_en',
field=models.IntegerField(null=True, verbose_name='Course Load'),
),
migrations.AddField(
model_name='course',
name='course_load_es',
field=models.IntegerField(null=True, verbose_name='Course Load'),
),
migrations.AddField(
model_name='course',
name='course_load_pt_br',
field=models.IntegerField(null=True, verbose_name='Course Load'),
),
migrations.AddField(
model_name='course',
name='home_thumbnail_en',
field=models.ImageField(blank=True, null=True, upload_to=courses.utils.HashName('home_thumbnails', 'name'), verbose_name='Home thumbnail'),
),
migrations.AddField(
model_name='course',
name='home_thumbnail_es',
field=models.ImageField(blank=True, null=True, upload_to=courses.utils.HashName('home_thumbnails', 'name'), verbose_name='Home thumbnail'),
),
migrations.AddField(
model_name='course',
name='home_thumbnail_pt_br',
field=models.ImageField(blank=True, null=True, upload_to=courses.utils.HashName('home_thumbnails', 'name'), verbose_name='Home thumbnail'),
),
migrations.AddField(
model_name='course',
name='intro_video_en',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='courses.Video', verbose_name='Intro video'),
),
migrations.AddField(
model_name='course',
name='intro_video_es',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='courses.Video', verbose_name='Intro video'),
),
migrations.AddField(
model_name='course',
name='intro_video_pt_br',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='courses.Video', verbose_name='Intro video'),
),
migrations.AddField(
model_name='course',
name='min_percent_to_complete_en',
field=models.IntegerField(blank=True, default=100, null=True),
),
migrations.AddField(
model_name='course',
name='min_percent_to_complete_es',
field=models.IntegerField(blank=True, default=100, null=True),
),
migrations.AddField(
model_name='course',
name='min_percent_to_complete_pt_br',
field=models.IntegerField(blank=True, default=100, null=True),
),
migrations.AddField(
model_name='course',
name='name_en',
field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Name'),
),
migrations.AddField(
model_name='course',
name='name_es',
field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Name'),
),
migrations.AddField(
model_name='course',
name='name_pt_br',
field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Name'),
),
migrations.AddField(
model_name='course',
name='pronatec_en',
field=models.TextField(blank=True, null=True, verbose_name='Pronatec'),
),
migrations.AddField(
model_name='course',
name='pronatec_es',
field=models.TextField(blank=True, null=True, verbose_name='Pronatec'),
),
migrations.AddField(
model_name='course',
name='pronatec_pt_br',
field=models.TextField(blank=True, null=True, verbose_name='Pronatec'),
),
migrations.AddField(
model_name='course',
name='requirement_en',
field=models.TextField(blank=True, null=True, verbose_name='Requirement'),
),
migrations.AddField(
model_name='course',
name='requirement_es',
field=models.TextField(blank=True, null=True, verbose_name='Requirement'),
),
migrations.AddField(
model_name='course',
name='requirement_pt_br',
field=models.TextField(blank=True, null=True, verbose_name='Requirement'),
),
migrations.AddField(
model_name='course',
name='slug_en',
field=models.SlugField(max_length=255, null=True, unique=True, verbose_name='Slug'),
),
migrations.AddField(
model_name='course',
name='slug_es',
field=models.SlugField(max_length=255, null=True, unique=True, verbose_name='Slug'),
),
migrations.AddField(
model_name='course',
name='slug_pt_br',
field=models.SlugField(max_length=255, null=True, unique=True, verbose_name='Slug'),
),
migrations.AddField(
model_name='course',
name='structure_en',
field=models.TextField(blank=True, null=True, verbose_name='Structure'),
),
migrations.AddField(
model_name='course',
name='structure_es',
field=models.TextField(blank=True, null=True, verbose_name='Structure'),
),
migrations.AddField(
model_name='course',
name='structure_pt_br',
field=models.TextField(blank=True, null=True, verbose_name='Structure'),
),
migrations.AddField(
model_name='course',
name='thumbnail_en',
field=models.ImageField(blank=True, null=True, upload_to=courses.utils.HashName('course_thumbnails', 'name'), verbose_name='Thumbnail'),
),
migrations.AddField(
model_name='course',
name='thumbnail_es',
field=models.ImageField(blank=True, null=True, upload_to=courses.utils.HashName('course_thumbnails', 'name'), verbose_name='Thumbnail'),
),
migrations.AddField(
model_name='course',
name='thumbnail_pt_br',
field=models.ImageField(blank=True, null=True, upload_to=courses.utils.HashName('course_thumbnails', 'name'), verbose_name='Thumbnail'),
),
migrations.AddField(
model_name='course',
name='workload_en',
field=models.TextField(blank=True, null=True, verbose_name='Workload'),
),
migrations.AddField(
model_name='course',
name='workload_es',
field=models.TextField(blank=True, null=True, verbose_name='Workload'),
),
migrations.AddField(
model_name='course',
name='workload_pt_br',
field=models.TextField(blank=True, null=True, verbose_name='Workload'),
),
migrations.AddField(
model_name='lesson',
name='desc_en',
field=models.TextField(null=True, verbose_name='Description'),
),
migrations.AddField(
model_name='lesson',
name='desc_es',
field=models.TextField(null=True, verbose_name='Description'),
),
migrations.AddField(
model_name='lesson',
name='desc_pt_br',
field=models.TextField(null=True, verbose_name='Description'),
),
migrations.AddField(
model_name='lesson',
name='name_en',
field=models.CharField(max_length=255, null=True, verbose_name='Name'),
),
migrations.AddField(
model_name='lesson',
name='name_es',
field=models.CharField(max_length=255, null=True, verbose_name='Name'),
),
migrations.AddField(
model_name='lesson',
name='name_pt_br',
field=models.CharField(max_length=255, null=True, verbose_name='Name'),
),
migrations.AddField(
model_name='lesson',
name='notes_en',
field=models.TextField(blank=True, default='', null=True, verbose_name='Notes'),
),
migrations.AddField(
model_name='lesson',
name='notes_es',
field=models.TextField(blank=True, default='', null=True, verbose_name='Notes'),
),
migrations.AddField(
model_name='lesson',
name='notes_pt_br',
field=models.TextField(blank=True, default='', null=True, verbose_name='Notes'),
),
migrations.AddField(
model_name='lesson',
name='slug_en',
field=autoslug.fields.AutoSlugField(editable=False, max_length=128, null=True, populate_from='name', unique=True, verbose_name='Slug'),
),
migrations.AddField(
model_name='lesson',
name='slug_es',
field=autoslug.fields.AutoSlugField(editable=False, max_length=128, null=True, populate_from='name', unique=True, verbose_name='Slug'),
),
migrations.AddField(
model_name='lesson',
name='slug_pt_br',
field=autoslug.fields.AutoSlugField(editable=False, max_length=128, null=True, populate_from='name', unique=True, verbose_name='Slug'),
),
migrations.AddField(
model_name='lesson',
name='thumbnail_en',
field=models.ImageField(blank=True, null=True, upload_to=courses.utils.HashName('lesson_thumbnails', 'name'), verbose_name='Thumbnail'),
),
migrations.AddField(
model_name='lesson',
name='thumbnail_es',
field=models.ImageField(blank=True, null=True, upload_to=courses.utils.HashName('lesson_thumbnails', 'name'), verbose_name='Thumbnail'),
),
migrations.AddField(
model_name='lesson',
name='thumbnail_pt_br',
field=models.ImageField(blank=True, null=True, upload_to=courses.utils.HashName('lesson_thumbnails', 'name'), verbose_name='Thumbnail'),
),
migrations.AddField(
model_name='unit',
name='chat_room_en',
field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Chat Room'),
),
migrations.AddField(
model_name='unit',
name='chat_room_es',
field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Chat Room'),
),
migrations.AddField(
model_name='unit',
name='chat_room_pt_br',
field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Chat Room'),
),
migrations.AddField(
model_name='unit',
name='side_notes_en',
field=models.TextField(blank=True, null=True, verbose_name='Side notes'),
),
migrations.AddField(
model_name='unit',
name='side_notes_es',
field=models.TextField(blank=True, null=True, verbose_name='Side notes'),
),
migrations.AddField(
model_name='unit',
name='side_notes_pt_br',
field=models.TextField(blank=True, null=True, verbose_name='Side notes'),
),
migrations.AddField(
model_name='unit',
name='title_en',
field=models.CharField(blank=True, max_length=128, null=True, verbose_name='Title'),
),
migrations.AddField(
model_name='unit',
name='title_es',
field=models.CharField(blank=True, max_length=128, null=True, verbose_name='Title'),
),
migrations.AddField(
model_name='unit',
name='title_pt_br',
field=models.CharField(blank=True, max_length=128, null=True, verbose_name='Title'),
),
migrations.AddField(
model_name='unit',
name='video_en',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='unit', to='courses.Video', verbose_name='Video'),
),
migrations.AddField(
model_name='unit',
name='video_es',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='unit', to='courses.Video', verbose_name='Video'),
),
migrations.AddField(
model_name='unit',
name='video_pt_br',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='unit', to='courses.Video', verbose_name='Video'),
),
]
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