Skip to content
Browse files

don't call get_varname that often

  • Loading branch information...
1 parent 509c41f commit 0578a7b4b5a8cc854b1c5672a081dbc03001228d @ojii ojii committed Jan 18, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 cms/templatetags/cms_tags.py
View
3 cms/templatetags/cms_tags.py
@@ -370,9 +370,10 @@ def get_context(self, context, cl, spec):
def _restore_sekizai(context, changes):
+ varname = get_varname()
for key, values in changes.items():
for value in values:
- context[get_varname()][key].append(value)
+ context[varname][key].append(value)
def _show_placeholder_for_page(context, placeholder_name, page_lookup, lang=None,

0 comments on commit 0578a7b

Please sign in to comment.
Something went wrong with that request. Please try again.