kopia lustrzana https://github.com/wagtail/wagtail
Update Page.content_panels with current field defs
rodzic
939396767c
commit
d4ba4a2a75
|
@ -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.
|
# Now that we've defined EditHandlers, we can set up wagtailcore.Page to have some.
|
||||||
Page.content_panels = [
|
Page.content_panels = [
|
||||||
FieldPanel('title'),
|
FieldPanel('title', classname="full title"),
|
||||||
FieldPanel('slug'),
|
|
||||||
]
|
]
|
||||||
Page.promote_panels = [
|
Page.promote_panels = [
|
||||||
|
MultiFieldPanel([
|
||||||
|
FieldPanel('slug'),
|
||||||
|
FieldPanel('seo_title'),
|
||||||
|
FieldPanel('show_in_menus'),
|
||||||
|
FieldPanel('search_description'),
|
||||||
|
], 'Common page configuration'),
|
||||||
]
|
]
|
||||||
|
|
Ładowanie…
Reference in New Issue