You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.5 KiB
39 lines
1.5 KiB
# Generated by Django 2.0.1 on 2018-01-29 14:58
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('course', '0008_auto_20180129_1436'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Material',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('title', models.CharField(max_length=100, verbose_name='Название материала')),
|
|
('cover', models.ImageField(upload_to='lessons', verbose_name='Фон материала')),
|
|
('short_description', models.TextField(verbose_name='Краткое описание материала')),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('update_at', models.DateTimeField(auto_now=True)),
|
|
],
|
|
options={
|
|
'verbose_name': 'Материал',
|
|
'verbose_name_plural': 'Материалы',
|
|
'ordering': ('title',),
|
|
},
|
|
),
|
|
migrations.AlterField(
|
|
model_name='lesson',
|
|
name='short_description',
|
|
field=models.TextField(verbose_name='Краткое описание урока'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='course',
|
|
name='materials',
|
|
field=models.ManyToManyField(to='course.Material'),
|
|
),
|
|
]
|
|
|