Skip to content

Commit

Permalink
Adds a default value to the homepage text content
Browse files Browse the repository at this point in the history
Ensures the migration prefills the RichTextField, wich in turn prevents validation errors when copying the page for personalisation. Fixes #154.
  • Loading branch information
jberghoef committed Jun 1, 2017
1 parent 0f79cf1 commit e3ceecf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
]

0 comments on commit e3ceecf

Please sign in to comment.