repos

blog.bythewood.me-wagtail

mirror archived upstream

Self-hostable blog for developers built on Wagtail and Django, with webpack, Bootstrap, and CodeMirror.

blogbootstrapdjangodockerhandcodedpythonself-hostedwagtailwebpack

1.7 KB · 34 lines · Python Raw History
 1# Generated by Django 4.0.5 on 2022-06-11 07:14
 2
 3from django.db import migrations, models
 4import django.db.models.deletion
 5import wagtail.blocks
 6import wagtail.embeds.blocks
 7import wagtail.fields
 8import wagtail.images.blocks
 9
10
11class Migration(migrations.Migration):
12
13    dependencies = [
14        ('wagtailcore', '0069_log_entry_jsonfield'),
15        ('wagtailimages', '0024_index_image_file_hash'),
16        ('pages', '0004_alter_blogpostpage_options'),
17    ]
18
19    operations = [
20        migrations.CreateModel(
21            name='SearchPage',
22            fields=[
23                ('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')),
24                ('body', wagtail.fields.StreamField([('rich_text', wagtail.blocks.RichTextBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('code', wagtail.blocks.StructBlock([('language', wagtail.blocks.ChoiceBlock(choices=[('python', 'Python'), ('javascript', 'Javascript'), ('htmlmixed', 'HTML'), ('css', 'CSS'), ('shell', 'Shell')])), ('text', wagtail.blocks.TextBlock())])), ('embed', wagtail.embeds.blocks.EmbedBlock())], blank=True, use_json_field=True)),
25                ('cover_image', models.ForeignKey(blank=True, help_text='Cover image for this page, used in listings and at the top of the page.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.image')),
26            ],
27            options={
28                'verbose_name': 'Search Page',
29                'verbose_name_plural': 'Search Pages',
30            },
31            bases=('wagtailcore.page',),
32        ),
33    ]