1 # -*- coding: utf-8 -*-
2 # Generated by Django 1.11.20 on 2019-03-18 12:09
3 from __future__ import unicode_literals
5 from django.db import migrations, models
6 import django.db.models.deletion
9 class Migration(migrations.Migration):
12 ('social', '0004_auto_20170725_1204'),
16 migrations.CreateModel(
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')),
24 'verbose_name': 'banner group',
25 'verbose_name_plural': 'banner groups',
26 'ordering': ('name',),
29 migrations.CreateModel(
32 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
33 ('slug', models.SlugField(unique=True, verbose_name='slug')),
36 'verbose_name': 'carousel',
37 'verbose_name_plural': 'carousels',
38 'ordering': ('slug',),
41 migrations.CreateModel(
44 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
45 ('order', models.PositiveSmallIntegerField(unique=True)),
48 'verbose_name': 'carousel item',
49 'verbose_name_plural': 'carousel items',
50 'ordering': ('order',),
56 field=models.DateTimeField(auto_now_add=True, default='2007-09-17 12:00+00', verbose_name='created at'),
57 preserve_default=False,
62 field=models.ImageField(blank=True, upload_to='', verbose_name='picture'),
67 field=models.URLField(blank=True, verbose_name='video'),
70 model_name='carouselitem',
72 field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='social.Cite'),
75 model_name='carouselitem',
77 field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='social.BannerGroup'),
80 model_name='carouselitem',
82 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='social.Carousel'),
87 field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='social.BannerGroup', verbose_name='group'),
89 migrations.AlterUniqueTogether(
91 unique_together=set([('carousel', 'order')]),