Move content_panels inside BookPage definition.

pull/1938/merge
Rich Brennan 2015-11-23 16:21:43 +00:00 zatwierdzone przez Matt Westcott
rodzic 29753ecb0d
commit fab4e2224f
1 zmienionych plików z 8 dodań i 10 usunięć

Wyświetl plik

@ -110,8 +110,7 @@ In the above example, the list of adverts is a fixed list, displayed as part of
related_name='+' related_name='+'
) )
content_panels = Page.content_panels + [
BookPage.content_panels = [
SnippetChooserPanel('advert'), SnippetChooserPanel('advert'),
# ... # ...
] ]
@ -152,8 +151,7 @@ To attach multiple adverts to a page, the ``SnippetChooserPanel`` can be placed
class BookPage(Page): class BookPage(Page):
... ...
content_panels = Page.content_panels + [
BookPage.content_panels = [
InlinePanel('advert_placements', label="Adverts"), InlinePanel('advert_placements', label="Adverts"),
# ... # ...
] ]