Update Page.content_panels with current field defs

pull/3/head
Matt Westcott 2014-02-05 17:15:45 +00:00
rodzic 939396767c
commit d4ba4a2a75
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -632,8 +632,13 @@ def InlinePanel(base_model, relation_name, panels=None, label='', help_text=''):
# Now that we've defined EditHandlers, we can set up wagtailcore.Page to have some.
Page.content_panels = [
FieldPanel('title'),
FieldPanel('slug'),
FieldPanel('title', classname="full title"),
]
Page.promote_panels = [
MultiFieldPanel([
FieldPanel('slug'),
FieldPanel('seo_title'),
FieldPanel('show_in_menus'),
FieldPanel('search_description'),
], 'Common page configuration'),
]