Add plugin instance to context
This commit is contained in:
parent
0f8f26c8a0
commit
5007e61248
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue