Minor fixes.
[wolnelektury.git] / src / social / migrations / 0005_auto_20190318_1309.py
1 # -*- coding: utf-8 -*-
2 # Generated by Django 1.11.20 on 2019-03-18 12:09
3 from __future__ import unicode_literals
4
5 from django.db import migrations, models
6 import django.db.models.deletion
7
8
9 class Migration(migrations.Migration):
10
11     dependencies = [
12         ('social', '0004_auto_20170725_1204'),
13     ]
14
15     operations = [
16         migrations.CreateModel(
17             name='BannerGroup',
18             fields=[
19                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
20                 ('name', models.CharField(max_length=255, unique=True, verbose_name='name')),
21                 ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='created at')),
22             ],
23             options={
24                 'verbose_name': 'banner group',
25                 'verbose_name_plural': 'banner groups',
26                 'ordering': ('name',),
27             },
28         ),
29         migrations.CreateModel(
30             name='Carousel',
31             fields=[
32                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
33                 ('slug', models.SlugField(unique=True, verbose_name='slug')),
34             ],
35             options={
36                 'verbose_name': 'carousel',
37                 'verbose_name_plural': 'carousels',
38                 'ordering': ('slug',),
39             },
40         ),
41         migrations.CreateModel(
42             name='CarouselItem',
43             fields=[
44                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
45                 ('order', models.PositiveSmallIntegerField(unique=True)),
46             ],
47             options={
48                 'verbose_name': 'carousel item',
49                 'verbose_name_plural': 'carousel items',
50                 'ordering': ('order',),
51             },
52         ),
53         migrations.AddField(
54             model_name='cite',
55             name='created_at',
56             field=models.DateTimeField(auto_now_add=True, default='2007-09-17 12:00+00', verbose_name='created at'),
57             preserve_default=False,
58         ),
59         migrations.AddField(
60             model_name='cite',
61             name='picture',
62             field=models.ImageField(blank=True, upload_to='', verbose_name='picture'),
63         ),
64         migrations.AddField(
65             model_name='cite',
66             name='video',
67             field=models.URLField(blank=True, verbose_name='video'),
68         ),
69         migrations.AddField(
70             model_name='carouselitem',
71             name='banner',
72             field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='social.Cite'),
73         ),
74         migrations.AddField(
75             model_name='carouselitem',
76             name='banner_group',
77             field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='social.BannerGroup'),
78         ),
79         migrations.AddField(
80             model_name='carouselitem',
81             name='carousel',
82             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='social.Carousel'),
83         ),
84         migrations.AddField(
85             model_name='cite',
86             name='group',
87             field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='social.BannerGroup', verbose_name='group'),
88         ),
89         migrations.AlterUniqueTogether(
90             name='carouselitem',
91             unique_together=set([('carousel', 'order')]),
92         ),
93     ]