在下面的模型中,我想让整个bottom_content
字段都不需要。我怎样才能做到这一点?
class ServicePage(Page):
top_content = StreamField(default_blocks + [
('two_columns', TwoColumnBlock()),
('three_columns', ThreeColumnBlock()),
])
bottom_content = StreamField(default_blocks + [
('two_columns', TwoColumnBlock()),
('three_columns', ThreeColumnBlock()),
])
search_fields = Page.search_fields + [
index.SearchField('top_content'),
index.SearchField('bottom_content'),
]
content_panels = Page.content_panels + [
StreamFieldPanel('top_content'),
StreamFieldPanel('bottom_content'),
InlinePanel('service_package', label='Packages')
]