1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 from django.db import migrations, models
5 import django.db.models.deletion
8 class Migration(migrations.Migration):
11 ('social', '0004_auto_20170725_1204'),
15 migrations.CreateModel(
18 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19 ('name', models.CharField(max_length=255, unique=True, verbose_name='name')),
20 ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='created at')),
23 'verbose_name': 'banner group',
24 'verbose_name_plural': 'banner groups',
25 'ordering': ('name',),
28 migrations.CreateModel(
31 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
32 ('slug', models.SlugField(unique=True, verbose_name='slug')),
35 'verbose_name': 'carousel',
36 'verbose_name_plural': 'carousels',
37 'ordering': ('slug',),
40 migrations.CreateModel(
43 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
44 ('order', models.PositiveSmallIntegerField(unique=True)),
47 'verbose_name': 'carousel item',
48 'verbose_name_plural': 'carousel items',
49 'ordering': ('order',),
55 field=models.DateTimeField(auto_now_add=True, default='2007-09-17 12:00+00', verbose_name='created at'),
56 preserve_default=False,
61 field=models.ImageField(blank=True, upload_to='', verbose_name='picture'),
66 field=models.URLField(blank=True, verbose_name='video'),
69 model_name='carouselitem',
71 field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='social.Cite'),
74 model_name='carouselitem',
76 field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='social.BannerGroup'),
79 model_name='carouselitem',
81 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='social.Carousel'),
86 field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='social.BannerGroup', verbose_name='group'),
88 migrations.AlterUniqueTogether(
90 unique_together=set([('carousel', 'order')]),