Add plugin instance to context

This commit is contained in:
Stefan Wehrmeyer 2022-03-14 14:18:53 +01:00
parent 0f8f26c8a0
commit 5007e61248

View file

@ -23,6 +23,7 @@ class GovernmentPlansPlugin(CMSPluginBase):
def render(self, context, instance, placeholder): def render(self, context, instance, placeholder):
context = super().render(context, instance, placeholder) context = super().render(context, instance, placeholder)
context["plugin"] = instance
context["object_list"] = instance.get_plans( context["object_list"] = instance.get_plans(
context["request"], published_only=False context["request"], published_only=False
) )