make body on homepage required
This commit is contained in:
parent
a5feb97f1b
commit
e1926d0aa0
2 changed files with 22 additions and 1 deletions
21
project/home/migrations/0005_auto_20161229_1743.py
Normal file
21
project/home/migrations/0005_auto_20161229_1743.py
Normal 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(),
|
||||||
|
),
|
||||||
|
]
|
|
@ -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")
|
||||||
|
|
Reference in a new issue