From 8e2299b1cf155a8381387a916dab471d002d51a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20L=C3=B3pez?= <81331806+dlopezvsr@users.noreply.github.com> Date: Mon, 29 Jul 2024 10:08:16 -0600 Subject: [PATCH] Feature/tp1 211 change cms snippets order (#12656) * Newsletter field put before header * Newsletter model filed rearranged * Linting correction from single to double quotes --------- Co-authored-by: Diego --- .../networkapi/wagtailpages/pagemodels/campaigns.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/network-api/networkapi/wagtailpages/pagemodels/campaigns.py b/network-api/networkapi/wagtailpages/pagemodels/campaigns.py index 8cfc4714653..af1b92c185b 100644 --- a/network-api/networkapi/wagtailpages/pagemodels/campaigns.py +++ b/network-api/networkapi/wagtailpages/pagemodels/campaigns.py @@ -53,6 +53,14 @@ class CTABase(models.Model): SynchronizedField("newsletter"), ] + panels = [ + FieldPanel("name"), + FieldPanel("newsletter"), + FieldPanel("header"), + FieldPanel("description"), + FieldPanel("privacy_notice"), + ] + search_fields = [ index.SearchField("name", boost=10), index.SearchField("newsletter"),