Skip to content

Commit d5296f0

Browse files
committed
Add default for intro -- wagtail needs to be able to create blank page.
1 parent 72efc15 commit d5296f0

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 4.2.21 on 2025-06-21 18:14
2+
3+
from django.db import migrations
4+
import wagtail.fields
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('blog', '0003_alter_blogpost_intro'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='blogindexpage',
16+
name='intro',
17+
field=wagtail.fields.RichTextField(blank=True, default=''),
18+
),
19+
]

app/alloydflanagan/blog/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from wagtail.search import index
99

1010
class BlogIndexPage(Page):
11-
intro = RichTextField(blank=True)
11+
intro = RichTextField(blank=True, default='')
1212

1313
content_panels = Page.content_panels + [
1414
FieldPanel("intro"),

0 commit comments

Comments
 (0)