<s> from django . db import models <EOL> from django . template . response import TemplateResponse <EOL> from wagtail . wagtailcore import blocks <EOL> from wagtail . wagtailcore . models import Page , Orderable <EOL> from wagtail . wagtailsnippets . models import register_snippet <EOL> from wagtail . wagtailcore . fields import RichTextField , StreamField <EOL> from wagtail . wagtailimages . edit_handlers import ImageChooserPanel <EOL> from wagtail . wagtaildocs . edit_handlers import DocumentChooserPanel <EOL> from wagtail . wagtailadmin . edit_handlers import ( FieldPanel , MultiFieldPanel , <EOL> InlinePanel , PageChooserPanel , StreamFieldPanel ) <EOL> from modelcluster . fields import ParentalKey <EOL> from store . blocks import FeaturetteItemBlock , InverseFeaturetteItemBlock , CarouselBlock , FeaturedProductsBlock <EOL> class StoreIndexPage ( Page ) : <EOL> """<STR_LIT>""" <EOL> template = '<STR_LIT>' <EOL> subpage_types = [ '<STR_LIT>' ] <EOL> parent_page_types = [ ] <EOL> body = StreamField ( [ <EOL> ( '<STR_LIT>' , blocks . RichTextBlock ( icon = '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , FeaturetteItemBlock ( ) ) , <EOL> ( '<STR_LIT>' , InverseFeaturetteItemBlock ( ) ) , <EOL> ( '<STR_LIT>' , CarouselBlock ( ) ) , <EOL> ( '<STR_LIT>' , FeaturedProductsBlock ( ) ) , <EOL> ] ) <EOL> content_panels = [ <EOL> FieldPanel ( '<STR_LIT:title>' ) , <EOL> StreamFieldPanel ( '<STR_LIT:body>' ) , <EOL> ] <EOL> class StorePage ( Page ) : <EOL> template = '<STR_LIT>' <EOL> body = StreamField ( [ <EOL> ( '<STR_LIT>' , blocks . RichTextBlock ( icon = '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , FeaturetteItemBlock ( ) ) , <EOL> ( '<STR_LIT>' , InverseFeaturetteItemBlock ( ) ) , <EOL> ( '<STR_LIT>' , CarouselBlock ( ) ) <EOL> ] ) <EOL> content_panels = [ <EOL> FieldPanel ( '<STR_LIT:title>' ) , <EOL> StreamFieldPanel ( '<STR_LIT:body>' ) , <EOL> ] </s>
