From 2607c402456d8f7e3a7119d90129b4398b7b0434 Mon Sep 17 00:00:00 2001 From: miguelzinh3 Date: Mon, 9 Oct 2023 16:34:54 -0300 Subject: [PATCH] fix: add map in block and col plugin child classes --- app/contrib/frontend/grid/cms_plugins.py | 1 + app/contrib/frontend/landpage/plugin_base.py | 1 + app/project/settings/cms.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/contrib/frontend/grid/cms_plugins.py b/app/contrib/frontend/grid/cms_plugins.py index 6beae7bc..56653eb0 100644 --- a/app/contrib/frontend/grid/cms_plugins.py +++ b/app/contrib/frontend/grid/cms_plugins.py @@ -32,6 +32,7 @@ class ColumnPlugin(CMSPluginBase): "PressurePlugin", "VideoPlayerPlugin", "SnippetPlugin", + "LeafletMapPlugin" ] diff --git a/app/contrib/frontend/landpage/plugin_base.py b/app/contrib/frontend/landpage/plugin_base.py index 7f88926c..ea49179f 100644 --- a/app/contrib/frontend/landpage/plugin_base.py +++ b/app/contrib/frontend/landpage/plugin_base.py @@ -17,6 +17,7 @@ class BlockPluginBase(CMSPluginBase): "ButtonPlugin", "VideoPlayerPlugin", "SnippetPlugin", + "LeafletMapPlugin" ] prepopulated_fields = {"slug": ("title",)} fieldsets = [ diff --git a/app/project/settings/cms.py b/app/project/settings/cms.py index 32adc01f..ab3ad2ec 100644 --- a/app/project/settings/cms.py +++ b/app/project/settings/cms.py @@ -12,7 +12,7 @@ CMS_PLACEHOLDER_CONF = { "content": { "name": "Blocos", - "plugins": ["BlockPlugin", "BlockPressurePlugin", "EleicaoCandidateListPlugin", "EleicaoCarouselPlugin", "EleicaoVoterFormPlugin", "LeafletMapPlugin"], + "plugins": ["BlockPlugin", "BlockPressurePlugin", "EleicaoCandidateListPlugin", "EleicaoCarouselPlugin", "EleicaoVoterFormPlugin"], }, "navigation": { "name": "Navegação",