mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 01:03:11 +00:00
Update Page.content_panels with current field defs
This commit is contained in:
parent
939396767c
commit
d4ba4a2a75
1 changed files with 7 additions and 2 deletions
|
|
@ -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'),
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue