From c0345bb0ea9b5adde6d4aa4929b3cf663a3b9418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Farka?= <stepanfarka11@gmail.com> Date: Wed, 23 Feb 2022 10:24:43 +0100 Subject: [PATCH] district and region: promote panels from MetadataPageMixin --- district/models.py | 4 ++-- region/models.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/district/models.py b/district/models.py index adc4abe4..7ee1c620 100644 --- a/district/models.py +++ b/district/models.py @@ -125,7 +125,7 @@ class DistrictHomePage(MetadataPageMixin, CalendarMixin, Page): FieldPanel("show_calendar_on_hp"), ] - promote_panels = [ + promote_panels = MetadataPageMixin.promote_panels + [ MultiFieldPanel( [ FieldPanel("facebook"), @@ -133,7 +133,7 @@ class DistrictHomePage(MetadataPageMixin, CalendarMixin, Page): FieldPanel("twitter"), FieldPanel("youtube"), ], - gettext_lazy("Common page configuration"), + gettext_lazy("Social page configuration"), ), ] diff --git a/region/models.py b/region/models.py index fcd921ba..5f81b572 100644 --- a/region/models.py +++ b/region/models.py @@ -125,7 +125,7 @@ class RegionHomePage(MetadataPageMixin, CalendarMixin, Page): FieldPanel("show_calendar_on_hp"), ] - promote_panels = [ + promote_panels = MetadataPageMixin.promote_panels + [ MultiFieldPanel( [ FieldPanel("facebook"), @@ -133,7 +133,7 @@ class RegionHomePage(MetadataPageMixin, CalendarMixin, Page): FieldPanel("twitter"), FieldPanel("youtube"), ], - gettext_lazy("Common page configuration"), + gettext_lazy("Social page configuration"), ), ] -- GitLab