7

Support Wagtail 4.2 (#1)

Co-authored-by: nick.moreton <nick.moreton@torchbox.com>
Co-authored-by: Nick Moreton <nick.moreton@torchbox.com>
Reviewed-on: #1
This commit is contained in:
2023-05-07 03:25:48 +00:00
parent dd4530203f
commit b8d7dd53ae
90 changed files with 2666 additions and 1584 deletions

View File

@ -2,28 +2,37 @@
from __future__ import unicode_literals
import django.db.models.deletion
import wagtail.core.fields
from django.db import migrations, models
from wagtail import fields
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0001_initial'),
('pages', '0001_initial'),
("wagtailcore", "0001_initial"),
("pages", "0001_initial"),
]
operations = [
migrations.CreateModel(
name='RegularPage',
name="RegularPage",
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')), # noqa: E501
('subtitle', models.CharField(blank=True, default='', max_length=255)),
('body', wagtail.core.fields.RichTextField(blank=True, default='')),
(
"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",
),
), # noqa: E501
("subtitle", models.CharField(blank=True, default="", max_length=255)),
("body", fields.RichTextField(blank=True, default="")),
],
options={
'abstract': False,
"abstract": False,
},
bases=('wagtailcore.page',),
bases=("wagtailcore.page",),
),
]