Adds a default value to the homepage text content
Ensures the migration prefills the RichTextField, wich in turn prevents validation errors when copying the page for personalisation. Fixes #154.
This commit is contained in:
@ -16,7 +16,7 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='homepage',
|
model_name='homepage',
|
||||||
name='text_content',
|
name='text_content',
|
||||||
field=wagtail.wagtailcore.fields.RichTextField(default=''),
|
field=wagtail.wagtailcore.fields.RichTextField(default='Thank you for trying Wagxperience!'),
|
||||||
preserve_default=False,
|
preserve_default=False,
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user