Permalink
Browse files

further micro-optimize the _restore_sekizai function

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

0 comments on commit ecd464d

Please sign in to comment.