Move content_panels inside BlogPage definition.

pull/1944/head
Rich Brennan 2015-11-19 17:16:02 +00:00
rodzic 5dc0b37874
commit 2ad3985d67
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.