Merge pull request #1944 from richbrennan/master

Move content_panels inside BlogPage definition.
pull/1943/merge
Matt Westcott 2015-11-19 17:32:10 +00:00
commit 4cd6a7130a
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -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.