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.
30 lines
1.3 KiB
30 lines
1.3 KiB
# Generated by Django 2.0.3 on 2018-04-09 13:01
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('content', '0017_auto_20180406_1847'),
|
|
('school', '0006_schoolschedule_start_at'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='SchoolScheduleImage',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('update_at', models.DateTimeField(auto_now=True)),
|
|
('img', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='schoolschedule_images', to='content.ImageObject', verbose_name='Объект изображения')),
|
|
('schoolschedule', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='schoolschedule_images', to='school.SchoolSchedule', verbose_name='День занятия')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Изображение в галерее',
|
|
'verbose_name_plural': 'Изображения в галерее',
|
|
'ordering': ('-created_at',),
|
|
},
|
|
),
|
|
]
|
|
|