1
Fork 0

make body on homepage required

This commit is contained in:
Jake Howard 2016-12-29 17:47:56 +00:00
parent a5feb97f1b
commit e1926d0aa0
2 changed files with 22 additions and 1 deletions

View file

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-29 17:43
from __future__ import unicode_literals
from django.db import migrations
import wagtail.wagtailcore.fields
class Migration(migrations.Migration):
dependencies = [
('home', '0004_remove_homepage_image'),
]
operations = [
migrations.AlterField(
model_name='homepage',
name='body',
field=wagtail.wagtailcore.fields.RichTextField(),
),
]

View file

@ -10,7 +10,7 @@ from project.common.utils import round_to_multiple
class HomePage(Entity): class HomePage(Entity):
is_home = True is_home = True
body = RichTextField(blank=True) body = RichTextField()
content_panels = Page.content_panels + [ content_panels = Page.content_panels + [
FieldPanel('body', classname="full") FieldPanel('body', classname="full")