Ejemplo n.º 1
0
class Migration(migrations.Migration):

    dependencies = [
        ('demo', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Institution',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=250)),
                ('code', models.UUIDField()),
                ('active', models.BooleanField(default=True)),
                ('bccr_bussiness', models.IntegerField(default=1)),
                ('bccr_entity', models.IntegerField(default=1)),
                ('private_key', models.TextField()),
                ('public_key', models.TextField()),
                ('server_public_key', models.TextField()),
            ],
            options={
                'ordering': ('pk', ),
                'permissions':
                (('view_institution', 'Can see available tasks'), ),
            },
            bases=(models.Model, demo.models.PEMpresentation),
        ),
        migrations.AlterField(
            model_name='authenticatedatarequest',
            name='institution',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='demo.Institution'),
        ),
        migrations.AlterField(
            model_name='notificationurl',
            name='institution',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='demo.Institution'),
        ),
    ]
Ejemplo n.º 2
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('demo', '0001_create_superuser'),
    ]

    operations = [
        migrations.CreateModel(
            name='Image',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('file', models.FileField(upload_to=demo.models.uuid_name)),
                ('scanned', models.BooleanField(default=False)),
                ('corrected', models.BooleanField(default=False)),
            ],
        ),
        migrations.CreateModel(
            name='Rect',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('type', models.TextField()),
                ('description', models.TextField()),
                ('top', models.IntegerField()),
                ('left', models.IntegerField()),
                ('right', models.IntegerField()),
                ('bottom', models.IntegerField()),
                ('level', models.IntegerField()),
                ('level_corrected', models.IntegerField(blank=True,
                                                        null=True)),
                ('image',
                 models.ForeignKey(on_delete=django.db.models.deletion.PROTECT,
                                   to='demo.Image')),
            ],
        ),
    ]
Ejemplo n.º 3
0
class Migration(migrations.Migration):

    dependencies = [
        ('wagtaildocs', '0007_merge'),
        ('wagtailcore', '0030_index_on_pagerevision_created_at'),
        ('demo', '0018_auto_20161007_0814'),
    ]

    operations = [
        migrations.CreateModel(
            name='EventIndexPage',
            fields=[
                ('page_ptr',
                 models.OneToOneField(
                     auto_created=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     parent_link=True,
                     primary_key=True,
                     serialize=False,
                     to='wagtailcore.Page')),
                ('campi_dinamici',
                 wagtail.wagtailcore.fields.StreamField(
                     (('h2',
                       wagtail.wagtailcore.blocks.CharBlock(classname='title',
                                                            icon='title')),
                      ('h3',
                       wagtail.wagtailcore.blocks.CharBlock(classname='title',
                                                            icon='title')),
                      ('h4',
                       wagtail.wagtailcore.blocks.CharBlock(classname='title',
                                                            icon='title')),
                      ('h5',
                       wagtail.wagtailcore.blocks.CharBlock(classname='title',
                                                            icon='title')),
                      ('h6',
                       wagtail.wagtailcore.blocks.CharBlock(classname='title',
                                                            icon='title')),
                      ('intro',
                       wagtail.wagtailcore.blocks.RichTextBlock(
                           icon='pilcrow')),
                      ('paragraph',
                       wagtail.wagtailcore.blocks.RichTextBlock(
                           icon='pilcrow')),
                      ('aligned_image',
                       wagtail.wagtailcore.blocks.StructBlock(
                           (('image',
                             wagtail.wagtailimages.blocks.ImageChooserBlock()),
                            ('caption',
                             wagtail.wagtailcore.blocks.RichTextBlock()),
                            ('alignment',
                             demo.models.ImageFormatChoiceBlock())),
                           icon='image',
                           label='Aligned image')),
                      ('pullquote',
                       wagtail.wagtailcore.blocks.StructBlock(
                           (('quote',
                             wagtail.wagtailcore.blocks.TextBlock(
                                 'quote title')),
                            ('attribution',
                             wagtail.wagtailcore.blocks.CharBlock())))),
                      ('aligned_html',
                       wagtail.wagtailcore.blocks.StructBlock(
                           (('html',
                             wagtail.wagtailcore.blocks.RawHTMLBlock()),
                            ('alignment',
                             demo.models.HTMLAlignmentChoiceBlock())),
                           icon='code',
                           label='Raw HTML')),
                      ('document',
                       wagtail.wagtaildocs.blocks.DocumentChooserBlock(
                           icon='doc-full-inverse'))))),
                ('intro',
                 wagtail.wagtailcore.fields.RichTextField(
                     blank=True, verbose_name='Titolo Corpo')),
                ('titolo_principale',
                 wagtail.wagtailcore.fields.RichTextField(
                     blank=True, verbose_name='Titolo Parallasse')),
                ('secondo_titolo',
                 wagtail.wagtailcore.fields.RichTextField(
                     blank=True, verbose_name='Secondo Titolo Parallasse')),
            ],
            options={
                'verbose_name': 'Pagina Indice Eventi',
            },
            bases=('wagtailcore.page', ),
        ),
        migrations.CreateModel(
            name='EventIndexPageLinkEsterno',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name='External link')),
                ('title',
                 models.CharField(help_text='Link title', max_length=255)),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
                ('link_page',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtailcore.Page')),
                ('page',
                 modelcluster.fields.ParentalKey(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='link_esterno',
                     to='demo.EventIndexPage')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='EventIndexPageRelatedLink',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name='External link')),
                ('title',
                 models.CharField(help_text='Link title', max_length=255)),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
                ('link_page',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtailcore.Page')),
                ('page',
                 modelcluster.fields.ParentalKey(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='related_links',
                     to='demo.EventIndexPage')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
    ]
Ejemplo n.º 4
0
class Migration(migrations.Migration):

    dependencies = [
        ('wagtaildocs', '0007_merge'),
        ('wagtailcore', '0030_index_on_pagerevision_created_at'),
        ('wagtailimages', '0015_fill_filter_spec_field'),
        ('demo', '0008_auto_20161006_1927'),
    ]

    operations = [
        migrations.CreateModel(
            name='AboutPage',
            fields=[
                ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')),
                ('campi_dinamici', wagtail.wagtailcore.fields.StreamField((('h2', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title')), ('h3', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title')), ('h4', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title')), ('h5', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title')), ('h6', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title')), ('intro', wagtail.wagtailcore.blocks.RichTextBlock(icon='pilcrow')), ('paragraph', wagtail.wagtailcore.blocks.RichTextBlock(icon='pilcrow')), ('aligned_image', wagtail.wagtailcore.blocks.StructBlock((('image', wagtail.wagtailimages.blocks.ImageChooserBlock()), ('caption', wagtail.wagtailcore.blocks.RichTextBlock()), ('alignment', demo.models.ImageFormatChoiceBlock())), icon='image', label='Aligned image')), ('pullquote', wagtail.wagtailcore.blocks.StructBlock((('quote', wagtail.wagtailcore.blocks.TextBlock('quote title')), ('attribution', wagtail.wagtailcore.blocks.CharBlock())))), ('aligned_html', wagtail.wagtailcore.blocks.StructBlock((('html', wagtail.wagtailcore.blocks.RawHTMLBlock()), ('alignment', demo.models.HTMLAlignmentChoiceBlock())), icon='code', label='Raw HTML')), ('document', wagtail.wagtaildocs.blocks.DocumentChooserBlock(icon='doc-full-inverse'))))),
                ('titolo_principale', wagtail.wagtailcore.fields.RichTextField(blank=True, verbose_name='Titolo Parallasse')),
                ('secondo_titolo', wagtail.wagtailcore.fields.RichTextField(blank=True, verbose_name='Secondo Titolo Parallasse')),
                ('head_body', wagtail.wagtailcore.fields.RichTextField(blank=True, verbose_name='Titolo Corpo')),
                ('snippet_left', wagtail.wagtailcore.fields.RichTextField(blank=True, verbose_name='Testo di Sinistra')),
                ('snippet_right', wagtail.wagtailcore.fields.RichTextField(blank=True, verbose_name='Testo di Destra')),
            ],
            options={
                'verbose_name': 'Pagina Chi Siamo',
            },
            bases=('wagtailcore.page',),
        ),
        migrations.CreateModel(
            name='AboutPageCarousel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external', models.URLField(blank=True, verbose_name='External link')),
                ('titolo', models.CharField(blank=True, max_length=55)),
                ('descrizione', models.CharField(blank=True, max_length=55)),
                ('embed_url', models.URLField(blank=True, verbose_name='Embed URL')),
                ('stile_slide', models.CharField(blank=True, max_length=55)),
                ('image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
                ('link_document', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtaildocs.Document')),
                ('link_page', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtailcore.Page')),
                ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='carousel_about', to='demo.AboutPage')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='AboutPageGalleria',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external', models.URLField(blank=True, verbose_name='External link')),
                ('titolo', models.CharField(blank=True, max_length=55)),
                ('descrizione', models.CharField(blank=True, max_length=155)),
                ('image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
                ('link_document', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtaildocs.Document')),
                ('link_page', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtailcore.Page')),
                ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='galleria_persone', to='demo.AboutPage')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
    ]
Ejemplo n.º 5
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='DemoModel',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('char', models.CharField(max_length=255,
                                          verbose_name='Chäř')),
                ('integer', models.IntegerField()),
                ('logic', models.BooleanField(default=False)),
                ('null_logic', models.NullBooleanField(default=None)),
                ('date', models.DateField()),
                ('datetime', models.DateTimeField()),
                ('time', models.TimeField()),
                ('decimal', models.DecimalField(decimal_places=3,
                                                max_digits=10)),
                ('email', models.EmailField(max_length=254)),
                ('float', models.FloatField()),
                ('bigint', models.BigIntegerField()),
                ('generic_ip', models.GenericIPAddressField()),
                ('url', models.URLField()),
                ('text', models.TextField()),
                ('unique', models.CharField(max_length=255, unique=True)),
                ('nullable', models.CharField(max_length=255, null=True)),
                ('blank',
                 models.CharField(blank=True, max_length=255, null=True)),
                ('not_editable',
                 models.CharField(blank=True,
                                  editable=False,
                                  max_length=255,
                                  null=True)),
                ('choices',
                 models.IntegerField(
                     choices=[(1, 'Choice 1'), (2,
                                                'Choice 2'), (3,
                                                              'Choice 3')])),
                ('image', models.ImageField(blank=True,
                                            null=True,
                                            upload_to='')),
                ('subclassed_image',
                 demo.models.SubclassedImageField(blank=True,
                                                  null=True,
                                                  upload_to='')),
            ],
            options={
                'ordering': ('-id', ),
            },
        ),
        migrations.CreateModel(
            name='DemoOneToOne',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('demo',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='onetoone',
                     to='demo.DemoModel')),
            ],
        ),
        migrations.CreateModel(
            name='UserDetail',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('note', models.CharField(blank=True, max_length=10)),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('wagtailcore', '0030_index_on_pagerevision_created_at'),
        ('wagtailimages', '0015_fill_filter_spec_field'),
        ('wagtaildocs', '0007_merge'),
        ('demo', '0015_auto_20161006_2004'),
    ]

    operations = [
        migrations.CreateModel(
            name='EventPage',
            fields=[
                ('page_ptr',
                 models.OneToOneField(
                     auto_created=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     parent_link=True,
                     primary_key=True,
                     serialize=False,
                     to='wagtailcore.Page')),
                ('campi_dinamici',
                 wagtail.wagtailcore.fields.StreamField(
                     (('h2',
                       wagtail.wagtailcore.blocks.CharBlock(classname='title',
                                                            icon='title')),
                      ('h3',
                       wagtail.wagtailcore.blocks.CharBlock(classname='title',
                                                            icon='title')),
                      ('h4',
                       wagtail.wagtailcore.blocks.CharBlock(classname='title',
                                                            icon='title')),
                      ('h5',
                       wagtail.wagtailcore.blocks.CharBlock(classname='title',
                                                            icon='title')),
                      ('h6',
                       wagtail.wagtailcore.blocks.CharBlock(classname='title',
                                                            icon='title')),
                      ('intro',
                       wagtail.wagtailcore.blocks.RichTextBlock(
                           icon='pilcrow')),
                      ('paragraph',
                       wagtail.wagtailcore.blocks.RichTextBlock(
                           icon='pilcrow')),
                      ('aligned_image',
                       wagtail.wagtailcore.blocks.StructBlock(
                           (('image',
                             wagtail.wagtailimages.blocks.ImageChooserBlock()),
                            ('caption',
                             wagtail.wagtailcore.blocks.RichTextBlock()),
                            ('alignment',
                             demo.models.ImageFormatChoiceBlock())),
                           icon='image',
                           label='Aligned image')),
                      ('pullquote',
                       wagtail.wagtailcore.blocks.StructBlock(
                           (('quote',
                             wagtail.wagtailcore.blocks.TextBlock(
                                 'quote title')),
                            ('attribution',
                             wagtail.wagtailcore.blocks.CharBlock())))),
                      ('aligned_html',
                       wagtail.wagtailcore.blocks.StructBlock(
                           (('html',
                             wagtail.wagtailcore.blocks.RawHTMLBlock()),
                            ('alignment',
                             demo.models.HTMLAlignmentChoiceBlock())),
                           icon='code',
                           label='Raw HTML')),
                      ('document',
                       wagtail.wagtaildocs.blocks.DocumentChooserBlock(
                           icon='doc-full-inverse'))))),
                ('intro',
                 wagtail.wagtailcore.fields.RichTextField(
                     blank=True, verbose_name='Titolo Corpo')),
                ('date_from', models.DateField(verbose_name='Data Inizio')),
                ('date_to',
                 models.DateField(blank=True,
                                  help_text='Non richiesta per eventi singoli',
                                  null=True,
                                  verbose_name='Data Fine')),
                ('time_from',
                 models.TimeField(blank=True,
                                  null=True,
                                  verbose_name='Ora Inizio')),
                ('time_to',
                 models.TimeField(blank=True,
                                  null=True,
                                  verbose_name='Ora Fine')),
                ('audience',
                 models.CharField(choices=[('libero', 'Libero'),
                                           ('pagamento', 'Pagamento')],
                                  max_length=255,
                                  verbose_name='Ingresso')),
                ('location', models.CharField(max_length=255)),
                ('body', wagtail.wagtailcore.fields.RichTextField(blank=True)),
                ('cost', models.CharField(max_length=255)),
                ('signup_link', models.URLField(blank=True)),
                ('feed_image',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to='wagtailimages.Image')),
            ],
            options={
                'verbose_name': 'Pagina Evento',
            },
            bases=('wagtailcore.page', ),
        ),
        migrations.CreateModel(
            name='EventPageLinkEsterno',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name='External link')),
                ('title',
                 models.CharField(help_text='Link title', max_length=255)),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
                ('link_page',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtailcore.Page')),
                ('page',
                 modelcluster.fields.ParentalKey(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='link_esterno',
                     to='demo.EventPage')),
            ],
            options={
                'abstract': False,
                'ordering': ['sort_order'],
            },
        ),
        migrations.CreateModel(
            name='EventPageRelatedLink',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name='External link')),
                ('title',
                 models.CharField(help_text='Link title', max_length=255)),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
                ('link_page',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtailcore.Page')),
                ('page',
                 modelcluster.fields.ParentalKey(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='related_links',
                     to='demo.EventPage')),
            ],
            options={
                'abstract': False,
                'ordering': ['sort_order'],
            },
        ),
        migrations.CreateModel(
            name='EventPageSpeaker',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name='External link')),
                ('first_name',
                 models.CharField(blank=True,
                                  max_length=255,
                                  verbose_name='Name')),
                ('last_name',
                 models.CharField(blank=True,
                                  max_length=255,
                                  verbose_name='Surname')),
                ('image',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to='wagtailimages.Image')),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
                ('link_page',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtailcore.Page')),
                ('page',
                 modelcluster.fields.ParentalKey(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='speakers',
                     to='demo.EventPage')),
            ],
            options={
                'abstract': False,
                'ordering': ['sort_order'],
            },
        ),
    ]
Ejemplo n.º 7
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('wagtaildocs', '0007_merge'),
        ('wagtailimages', '0017_reduce_focal_point_key_max_length'),
        ('wagtailcore', '0032_add_bulk_delete_page_permission'),
    ]

    operations = [
        migrations.CreateModel(
            name='Advert',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('url', models.URLField(blank=True, null=True)),
                ('text', models.CharField(max_length=255)),
            ],
        ),
        migrations.CreateModel(
            name='AdvertPlacement',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('advert',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='demo.Advert')),
            ],
        ),
        migrations.CreateModel(
            name='ContactPage',
            fields=[
                ('page_ptr',
                 models.OneToOneField(
                     auto_created=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     parent_link=True,
                     primary_key=True,
                     serialize=False,
                     to='wagtailcore.Page')),
                ('telephone', models.CharField(blank=True, max_length=20)),
                ('email', models.EmailField(blank=True, max_length=254)),
                ('address_1', models.CharField(blank=True, max_length=255)),
                ('address_2', models.CharField(blank=True, max_length=255)),
                ('city', models.CharField(blank=True, max_length=255)),
                ('country', models.CharField(blank=True, max_length=255)),
                ('post_code', models.CharField(blank=True, max_length=10)),
                ('body', wagtail.wagtailcore.fields.RichTextField(blank=True)),
                ('feed_image',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to='wagtailimages.Image')),
            ],
            options={
                'abstract': False,
            },
            bases=('wagtailcore.page', models.Model),
        ),
        migrations.CreateModel(
            name='EventIndexPage',
            fields=[
                ('page_ptr',
                 models.OneToOneField(
                     auto_created=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     parent_link=True,
                     primary_key=True,
                     serialize=False,
                     to='wagtailcore.Page')),
                ('intro',
                 wagtail.wagtailcore.fields.RichTextField(blank=True)),
            ],
            options={
                'abstract': False,
            },
            bases=('wagtailcore.page', ),
        ),
        migrations.CreateModel(
            name='EventIndexPageRelatedLink',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name=b'External link')),
                ('title',
                 models.CharField(help_text=b'Link title', max_length=255)),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='EventPage',
            fields=[
                ('page_ptr',
                 models.OneToOneField(
                     auto_created=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     parent_link=True,
                     primary_key=True,
                     serialize=False,
                     to='wagtailcore.Page')),
                ('date_from', models.DateField(verbose_name=b'Start date')),
                ('date_to',
                 models.DateField(
                     blank=True,
                     help_text=b'Not required if event is on a single day',
                     null=True,
                     verbose_name=b'End date')),
                ('time_from',
                 models.TimeField(blank=True,
                                  null=True,
                                  verbose_name=b'Start time')),
                ('time_to',
                 models.TimeField(blank=True,
                                  null=True,
                                  verbose_name=b'End time')),
                ('audience',
                 models.CharField(choices=[(b'public', b'Public'),
                                           (b'private', b'Private')],
                                  max_length=255)),
                ('location', models.CharField(max_length=255)),
                ('body', wagtail.wagtailcore.fields.RichTextField(blank=True)),
                ('cost', models.CharField(max_length=255)),
                ('signup_link', models.URLField(blank=True)),
                ('feed_image',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to='wagtailimages.Image')),
            ],
            options={
                'abstract': False,
            },
            bases=('wagtailcore.page', ),
        ),
        migrations.CreateModel(
            name='EventPageCarouselItem',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name=b'External link')),
                ('embed_url',
                 models.URLField(blank=True, verbose_name=b'Embed URL')),
                ('caption', models.CharField(blank=True, max_length=255)),
                ('image',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to='wagtailimages.Image')),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='EventPageRelatedLink',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name=b'External link')),
                ('title',
                 models.CharField(help_text=b'Link title', max_length=255)),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='EventPageSpeaker',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name=b'External link')),
                ('first_name',
                 models.CharField(blank=True,
                                  max_length=255,
                                  verbose_name=b'Name')),
                ('last_name',
                 models.CharField(blank=True,
                                  max_length=255,
                                  verbose_name=b'Surname')),
                ('image',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to='wagtailimages.Image')),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='FormField',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('label',
                 models.CharField(help_text='The label of the form field',
                                  max_length=255,
                                  verbose_name='label')),
                ('field_type',
                 models.CharField(choices=[('singleline', 'Single line text'),
                                           ('multiline', 'Multi-line text'),
                                           ('email', 'Email'),
                                           ('number', 'Number'),
                                           ('url', 'URL'),
                                           ('checkbox', 'Checkbox'),
                                           ('checkboxes', 'Checkboxes'),
                                           ('dropdown', 'Drop down'),
                                           ('radio', 'Radio buttons'),
                                           ('date', 'Date'),
                                           ('datetime', 'Date/time')],
                                  max_length=16,
                                  verbose_name='field type')),
                ('required',
                 models.BooleanField(default=True, verbose_name='required')),
                ('choices',
                 models.TextField(
                     blank=True,
                     help_text=
                     'Comma separated list of choices. Only applicable in checkboxes, radio and dropdown.',
                     verbose_name='choices')),
                ('default_value',
                 models.CharField(
                     blank=True,
                     help_text=
                     'Default value. Comma separated values supported for checkboxes.',
                     max_length=255,
                     verbose_name='default value')),
                ('help_text',
                 models.CharField(blank=True,
                                  max_length=255,
                                  verbose_name='help text')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='FormPage',
            fields=[
                ('page_ptr',
                 models.OneToOneField(
                     auto_created=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     parent_link=True,
                     primary_key=True,
                     serialize=False,
                     to='wagtailcore.Page')),
                ('to_address',
                 models.CharField(
                     blank=True,
                     help_text=
                     'Optional - form submissions will be emailed to these addresses. Separate multiple addresses by comma.',
                     max_length=255,
                     verbose_name='to address')),
                ('from_address',
                 models.CharField(blank=True,
                                  max_length=255,
                                  verbose_name='from address')),
                ('subject',
                 models.CharField(blank=True,
                                  max_length=255,
                                  verbose_name='subject')),
                ('intro',
                 wagtail.wagtailcore.fields.RichTextField(blank=True)),
                ('thank_you_text',
                 wagtail.wagtailcore.fields.RichTextField(blank=True)),
            ],
            options={
                'abstract': False,
            },
            bases=('wagtailcore.page', ),
        ),
        migrations.CreateModel(
            name='HomePage',
            fields=[
                ('page_ptr',
                 models.OneToOneField(
                     auto_created=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     parent_link=True,
                     primary_key=True,
                     serialize=False,
                     to='wagtailcore.Page')),
                ('body',
                 wagtail.wagtailcore.fields.StreamField(
                     [(b'h2',
                       wagtail.wagtailcore.blocks.CharBlock(classname=b'title',
                                                            icon=b'title')),
                      (b'h3',
                       wagtail.wagtailcore.blocks.CharBlock(classname=b'title',
                                                            icon=b'title')),
                      (b'h4',
                       wagtail.wagtailcore.blocks.CharBlock(classname=b'title',
                                                            icon=b'title')),
                      (b'intro',
                       wagtail.wagtailcore.blocks.RichTextBlock(
                           icon=b'pilcrow')),
                      (b'paragraph',
                       wagtail.wagtailcore.blocks.RichTextBlock(
                           icon=b'pilcrow')),
                      (b'aligned_image',
                       wagtail.wagtailcore.blocks.StructBlock(
                           [(b'image',
                             wagtail.wagtailimages.blocks.ImageChooserBlock()),
                            (b'caption',
                             wagtail.wagtailcore.blocks.RichTextBlock()),
                            (b'alignment',
                             demo.models.ImageFormatChoiceBlock())],
                           icon=b'image',
                           label=b'Aligned image')),
                      (b'pullquote',
                       wagtail.wagtailcore.blocks.StructBlock([
                           (b'quote',
                            wagtail.wagtailcore.blocks.TextBlock(
                                b'quote title')),
                           (b'attribution',
                            wagtail.wagtailcore.blocks.CharBlock())
                       ])),
                      (b'aligned_html',
                       wagtail.wagtailcore.blocks.StructBlock(
                           [(b'html',
                             wagtail.wagtailcore.blocks.RawHTMLBlock()),
                            (b'alignment',
                             demo.models.HTMLAlignmentChoiceBlock())],
                           icon=b'code',
                           label=b'Raw HTML')),
                      (b'document',
                       wagtail.wagtaildocs.blocks.DocumentChooserBlock(
                           icon=b'doc-full-inverse'))])),
            ],
            options={
                'verbose_name': 'Homepage',
            },
            bases=('wagtailcore.page', ),
        ),
        migrations.CreateModel(
            name='HomePageCarouselItem',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name=b'External link')),
                ('embed_url',
                 models.URLField(blank=True, verbose_name=b'Embed URL')),
                ('caption', models.CharField(blank=True, max_length=255)),
                ('image',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to='wagtailimages.Image')),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='HomePageRelatedLink',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name=b'External link')),
                ('title',
                 models.CharField(help_text=b'Link title', max_length=255)),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='PersonPage',
            fields=[
                ('page_ptr',
                 models.OneToOneField(
                     auto_created=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     parent_link=True,
                     primary_key=True,
                     serialize=False,
                     to='wagtailcore.Page')),
                ('telephone', models.CharField(blank=True, max_length=20)),
                ('email', models.EmailField(blank=True, max_length=254)),
                ('address_1', models.CharField(blank=True, max_length=255)),
                ('address_2', models.CharField(blank=True, max_length=255)),
                ('city', models.CharField(blank=True, max_length=255)),
                ('country', models.CharField(blank=True, max_length=255)),
                ('post_code', models.CharField(blank=True, max_length=10)),
                ('first_name', models.CharField(max_length=255)),
                ('last_name', models.CharField(max_length=255)),
                ('intro',
                 wagtail.wagtailcore.fields.RichTextField(blank=True)),
                ('biography',
                 wagtail.wagtailcore.fields.RichTextField(blank=True)),
                ('feed_image',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to='wagtailimages.Image')),
                ('image',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to='wagtailimages.Image')),
            ],
            options={
                'abstract': False,
            },
            bases=('wagtailcore.page', models.Model),
        ),
        migrations.CreateModel(
            name='PersonPageRelatedLink',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name=b'External link')),
                ('title',
                 models.CharField(help_text=b'Link title', max_length=255)),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='StandardIndexPage',
            fields=[
                ('page_ptr',
                 models.OneToOneField(
                     auto_created=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     parent_link=True,
                     primary_key=True,
                     serialize=False,
                     to='wagtailcore.Page')),
                ('intro',
                 wagtail.wagtailcore.fields.RichTextField(blank=True)),
                ('feed_image',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to='wagtailimages.Image')),
            ],
            options={
                'abstract': False,
            },
            bases=('wagtailcore.page', ),
        ),
        migrations.CreateModel(
            name='StandardIndexPageRelatedLink',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name=b'External link')),
                ('title',
                 models.CharField(help_text=b'Link title', max_length=255)),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='StandardPage',
            fields=[
                ('page_ptr',
                 models.OneToOneField(
                     auto_created=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     parent_link=True,
                     primary_key=True,
                     serialize=False,
                     to='wagtailcore.Page')),
                ('intro',
                 wagtail.wagtailcore.fields.RichTextField(blank=True)),
                ('body', wagtail.wagtailcore.fields.RichTextField(blank=True)),
                ('feed_image',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to='wagtailimages.Image')),
            ],
            options={
                'abstract': False,
            },
            bases=('wagtailcore.page', ),
        ),
        migrations.CreateModel(
            name='StandardPageCarouselItem',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name=b'External link')),
                ('embed_url',
                 models.URLField(blank=True, verbose_name=b'Embed URL')),
                ('caption', models.CharField(blank=True, max_length=255)),
                ('image',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to='wagtailimages.Image')),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
                ('link_page',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtailcore.Page')),
                ('page',
                 modelcluster.fields.ParentalKey(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='carousel_items',
                     to='demo.StandardPage')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='StandardPageRelatedLink',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.IntegerField(blank=True, editable=False, null=True)),
                ('link_external',
                 models.URLField(blank=True, verbose_name=b'External link')),
                ('title',
                 models.CharField(help_text=b'Link title', max_length=255)),
                ('link_document',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtaildocs.Document')),
                ('link_page',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='+',
                                   to='wagtailcore.Page')),
                ('page',
                 modelcluster.fields.ParentalKey(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='related_links',
                     to='demo.StandardPage')),
            ],
            options={
                'ordering': ['sort_order'],
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='standardindexpagerelatedlink',
            name='link_page',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='+',
                to='wagtailcore.Page'),
        ),
        migrations.AddField(
            model_name='standardindexpagerelatedlink',
            name='page',
            field=modelcluster.fields.ParentalKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='related_links',
                to='demo.StandardIndexPage'),
        ),
        migrations.AddField(
            model_name='personpagerelatedlink',
            name='link_page',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='+',
                to='wagtailcore.Page'),
        ),
        migrations.AddField(
            model_name='personpagerelatedlink',
            name='page',
            field=modelcluster.fields.ParentalKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='related_links',
                to='demo.PersonPage'),
        ),
        migrations.AddField(
            model_name='homepagerelatedlink',
            name='link_page',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='+',
                to='wagtailcore.Page'),
        ),
        migrations.AddField(
            model_name='homepagerelatedlink',
            name='page',
            field=modelcluster.fields.ParentalKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='related_links',
                to='demo.HomePage'),
        ),
        migrations.AddField(
            model_name='homepagecarouselitem',
            name='link_page',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='+',
                to='wagtailcore.Page'),
        ),
        migrations.AddField(
            model_name='homepagecarouselitem',
            name='page',
            field=modelcluster.fields.ParentalKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='carousel_items',
                to='demo.HomePage'),
        ),
        migrations.AddField(
            model_name='formfield',
            name='page',
            field=modelcluster.fields.ParentalKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='form_fields',
                to='demo.FormPage'),
        ),
        migrations.AddField(
            model_name='eventpagespeaker',
            name='link_page',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='+',
                to='wagtailcore.Page'),
        ),
        migrations.AddField(
            model_name='eventpagespeaker',
            name='page',
            field=modelcluster.fields.ParentalKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='speakers',
                to='demo.EventPage'),
        ),
        migrations.AddField(
            model_name='eventpagerelatedlink',
            name='link_page',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='+',
                to='wagtailcore.Page'),
        ),
        migrations.AddField(
            model_name='eventpagerelatedlink',
            name='page',
            field=modelcluster.fields.ParentalKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='related_links',
                to='demo.EventPage'),
        ),
        migrations.AddField(
            model_name='eventpagecarouselitem',
            name='link_page',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='+',
                to='wagtailcore.Page'),
        ),
        migrations.AddField(
            model_name='eventpagecarouselitem',
            name='page',
            field=modelcluster.fields.ParentalKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='carousel_items',
                to='demo.EventPage'),
        ),
        migrations.AddField(
            model_name='eventindexpagerelatedlink',
            name='link_page',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='+',
                to='wagtailcore.Page'),
        ),
        migrations.AddField(
            model_name='eventindexpagerelatedlink',
            name='page',
            field=modelcluster.fields.ParentalKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='related_links',
                to='demo.EventIndexPage'),
        ),
        migrations.AddField(
            model_name='advertplacement',
            name='page',
            field=modelcluster.fields.ParentalKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='advert_placements',
                to='wagtailcore.Page'),
        ),
        migrations.AddField(
            model_name='advert',
            name='page',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='adverts',
                to='wagtailcore.Page'),
        ),
    ]