From 5007e612486a84040315494cb1cc6b076d76767c Mon Sep 17 00:00:00 2001 From: Stefan Wehrmeyer Date: Mon, 14 Mar 2022 14:18:53 +0100 Subject: [PATCH] Add plugin instance to context --- froide_govplan/cms_plugins.py | 1 + 1 file changed, 1 insertion(+) diff --git a/froide_govplan/cms_plugins.py b/froide_govplan/cms_plugins.py index d6cb553..72f1035 100644 --- a/froide_govplan/cms_plugins.py +++ b/froide_govplan/cms_plugins.py @@ -23,6 +23,7 @@ class GovernmentPlansPlugin(CMSPluginBase): def render(self, context, instance, placeholder): context = super().render(context, instance, placeholder) + context["plugin"] = instance context["object_list"] = instance.get_plans( context["request"], published_only=False )