From e1926d0aa017b5e5979853fbb97d9492dd9bd6fa Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 29 Dec 2016 17:47:56 +0000 Subject: [PATCH] make body on homepage required --- .../migrations/0005_auto_20161229_1743.py | 21 +++++++++++++++++++ project/home/models.py | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 project/home/migrations/0005_auto_20161229_1743.py diff --git a/project/home/migrations/0005_auto_20161229_1743.py b/project/home/migrations/0005_auto_20161229_1743.py new file mode 100644 index 0000000..bb52f37 --- /dev/null +++ b/project/home/migrations/0005_auto_20161229_1743.py @@ -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(), + ), + ] diff --git a/project/home/models.py b/project/home/models.py index 260ffe7..3d636f5 100755 --- a/project/home/models.py +++ b/project/home/models.py @@ -10,7 +10,7 @@ from project.common.utils import round_to_multiple class HomePage(Entity): is_home = True - body = RichTextField(blank=True) + body = RichTextField() content_panels = Page.content_panels + [ FieldPanel('body', classname="full")