# Generated by Django 2.2.11 on 2020-03-23 00:57

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('django_power_cms', '0020_auto_20200322_2234'),
    ]

    operations = [
        migrations.CreateModel(
            name='CardsWidget',
            fields=[
                ('widget_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='django_power_cms.Widget')),
                ('width', models.CharField(default='80px', max_length=32, verbose_name='Width')),
                ('height', models.CharField(default='128px', max_length=32, verbose_name='Height')),
            ],
            options={
                'verbose_name': 'Cards Widget',
                'verbose_name_plural': 'Cards Widgets',
            },
            bases=('django_power_cms.widget',),
        ),
        migrations.CreateModel(
            name='CardsItem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('image', models.ImageField(upload_to='card-images', verbose_name='Image')),
                ('title', models.CharField(max_length=64, verbose_name='Title')),
                ('description', models.CharField(blank=True, max_length=128, null=True, verbose_name='Description')),
                ('order', models.IntegerField(default=0, verbose_name='Order')),
                ('widget', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='items', to='django_power_cms.CardsWidget', verbose_name='Widget')),
            ],
            options={
                'verbose_name': 'Card Item',
                'verbose_name_plural': 'Card Items',
                'ordering': ['order'],
            },
        ),
    ]
