parent
ba1e527db2
commit
152cd63fc2
8 changed files with 296 additions and 75 deletions
@ -0,0 +1,20 @@ |
|||||||
|
# Generated by Django 2.0.3 on 2018-04-10 08:51 |
||||||
|
|
||||||
|
from django.db import migrations, models |
||||||
|
import django.db.models.deletion |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('school', '0008_livelesson'), |
||||||
|
('content', '0017_auto_20180406_1847'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.AddField( |
||||||
|
model_name='content', |
||||||
|
name='live_lesson', |
||||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='content', to='school.LiveLesson', verbose_name='Урок онлайн школы'), |
||||||
|
), |
||||||
|
] |
||||||
@ -0,0 +1,31 @@ |
|||||||
|
# Generated by Django 2.0.3 on 2018-04-10 08:51 |
||||||
|
|
||||||
|
from django.db import migrations, models |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('school', '0007_schoolscheduleimage'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.CreateModel( |
||||||
|
name='LiveLesson', |
||||||
|
fields=[ |
||||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||||
|
('deactivated_at', models.DateTimeField(blank=True, default=None, null=True)), |
||||||
|
('title', models.CharField(max_length=100, verbose_name='Название урока')), |
||||||
|
('short_description', models.TextField(verbose_name='Краткое описание урока')), |
||||||
|
('stream', models.URLField(verbose_name='Ссылка на VIMEO')), |
||||||
|
('date', models.DateField(blank=True, null=True)), |
||||||
|
('created_at', models.DateTimeField(auto_now_add=True)), |
||||||
|
('update_at', models.DateTimeField(auto_now=True)), |
||||||
|
], |
||||||
|
options={ |
||||||
|
'verbose_name': 'Урок', |
||||||
|
'verbose_name_plural': 'Уроки', |
||||||
|
'ordering': ('title',), |
||||||
|
}, |
||||||
|
), |
||||||
|
] |
||||||
Loading…
Reference in new issue