77 lines
2.4 KiB
Python
77 lines
2.4 KiB
Python
# Generated by Django 4.0.5 on 2022-06-19 18:13
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
("wagtailimages", "0024_index_image_file_hash"),
|
|
("wagtailcore", "0069_log_entry_jsonfield"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="BlogPostPage",
|
|
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",
|
|
),
|
|
),
|
|
("subtitle", models.CharField(blank=True, max_length=255)),
|
|
(
|
|
"hero_image",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
to="wagtailimages.image",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"abstract": False,
|
|
},
|
|
bases=("wagtailcore.page", models.Model),
|
|
),
|
|
migrations.CreateModel(
|
|
name="BlogListPage",
|
|
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",
|
|
),
|
|
),
|
|
("subtitle", models.CharField(blank=True, max_length=255)),
|
|
(
|
|
"hero_image",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
to="wagtailimages.image",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"abstract": False,
|
|
},
|
|
bases=("wagtailcore.page", models.Model),
|
|
),
|
|
]
|