# -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2018-02-06 16:25
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('wagtailcore', '0028_merge'),
        ('home', '0009_remove_homepagesection_sectiontitle'),
    ]

    operations = [
        migrations.CreateModel(
            name='SnippetClass',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('text', models.CharField(max_length=255)),
                ('page', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='snippy', to='wagtailcore.Page')),
            ],
        ),
        migrations.AlterField(
            model_name='homepagesection',
            name='sectionClassName',
            field=models.SlugField(default='homepage-section', help_text='no spaces', max_length=100),
        ),
        migrations.AddField(
            model_name='homepagesection',
            name='advert',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='home.SnippetClass'),
        ),
    ]

[(28, 'django.db.models.SlugField', 'models.SlugField', ([], {'default': '"""homepage-section"""', 'help_text': '"""no spaces"""', 'max_length': '(100)'}), False, 'from django.db import migrations, models\n'), (33, 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'blank': '(True)', 'null': '(True)', 'on_delete': 'django.db.models.deletion.SET_NULL', 'related_name': '"""+"""', 'to': '"""home.SnippetClass"""'}), False, 'from django.db import migrations, models\n'), (20, 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), False, 'from django.db import migrations, models\n'), (21, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(255)'}), False, 'from django.db import migrations, models\n'), (22, 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'blank': '(True)', 'null': '(True)', 'on_delete': 'django.db.models.deletion.CASCADE', 'related_name': '"""snippy"""', 'to': '"""wagtailcore.Page"""'}), False, 'from django.db import migrations, models\n')]