From 2ad3985d67e206de1bc55390dc9e311e8b46d808 Mon Sep 17 00:00:00 2001 From: Rich Brennan Date: Thu, 19 Nov 2015 17:16:02 +0000 Subject: [PATCH] Move content_panels inside BlogPage definition. --- docs/topics/streamfield.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/topics/streamfield.rst b/docs/topics/streamfield.rst index d254b78761..69f57940a8 100644 --- a/docs/topics/streamfield.rst +++ b/docs/topics/streamfield.rst @@ -34,11 +34,11 @@ Using StreamField ('image', ImageChooserBlock()), ]) - BlogPage.content_panels = [ - FieldPanel('author'), - FieldPanel('date'), - StreamFieldPanel('body'), - ] + content_panels = Page.content_panels + [ + FieldPanel('author'), + FieldPanel('date'), + StreamFieldPanel('body'), + ] Note: StreamField is not backwards compatible with other field types such as RichTextField; if you migrate an existing field to StreamField, the existing data will be lost.