Permalink
Browse files

- Added back context pushing/popping as per https://github.com/divio/…

  • Loading branch information...
Chris Glass
Chris Glass committed Dec 17, 2010
1 parent c278643 commit 9c46f78b6f16ea49245c4bf10375e9c0fafc8920
Showing with 2 additions and 0 deletions.
  1. +2 −0 cms/plugin_rendering.py
View
@@ -124,6 +124,7 @@ def render_placeholder(placeholder, context_to_copy, name_fallback="Placeholder"
"""
from cms.plugins.utils import get_plugins
context = context_to_copy
+ context.push()
request = context['request']
plugins = [plugin for plugin in get_plugins(request, placeholder)]
page = get_page_from_placeholder_if_exists(placeholder)
@@ -164,6 +165,7 @@ def render_placeholder(placeholder, context_to_copy, name_fallback="Placeholder"
content = "".join(c)
if edit:
content = render_placeholder_toolbar(placeholder, context, content, name_fallback)
+ context.pop()
return content
def render_placeholder_toolbar(placeholder, context, content, name_fallback=None):

0 comments on commit 9c46f78

Please sign in to comment.