diff --git a/network-api/networkapi/mozfest/models.py b/network-api/networkapi/mozfest/models.py index c21b24dd211..d73606c55a4 100644 --- a/network-api/networkapi/mozfest/models.py +++ b/network-api/networkapi/mozfest/models.py @@ -213,7 +213,7 @@ class MozfestHomepage(MozfestPrimaryPage): panel_count = len(parent_panels) n = panel_count - 1 - all_panels = parent_panels[:n] + [ + content_panels = parent_panels[:n] + [ FieldPanel('cta_button_label'), FieldPanel('cta_button_destination'), FieldPanel('banner_heading'), @@ -224,27 +224,6 @@ class MozfestHomepage(MozfestPrimaryPage): StreamFieldPanel('banner_video'), ] + parent_panels[n:] - if banner_video_type == "hardcoded": - # Hide all the panels that aren't relevant for the video banner version of the MozFest Homepage - content_panels = [ - field for field in all_panels - if field.field_name not in [ - 'banner', 'header', 'intro', 'banner_carousel', 'banner_guide_text', 'banner_cta_label', - 'banner_video', 'banner_video_url', - ] - ] - elif banner_video_type == "featured": - # Hide all the panels that aren't relevant for the video banner version of the MozFest Homepage - content_panels = [ - field for field in all_panels - if field.field_name not in [ - 'banner', 'banner_guide_text', 'banner_video_url', 'cta_button_destination', - 'cta_button_label', 'header', 'hero_image', 'intro', - ] - ] - else: - content_panels = all_panels - # Because we inherit from PrimaryPage, but the "use_wide_template" property does nothing # we should hide it and make sure we use the right template settings_panels = Page.settings_panels