7

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:
Jasper Berghoef
2017-06-01 16:06:27 +02:00
parent 0f79cf1d15
commit e3ceecfa7d

View File

@ -16,7 +16,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='homepage',
name='text_content',
field=wagtail.wagtailcore.fields.RichTextField(default=''),
field=wagtail.wagtailcore.fields.RichTextField(default='Thank you for trying Wagxperience!'),
preserve_default=False,
),
]