new_context = paginate(context)
if self.template:
template_list.insert(0, self.template)
- return loader.render_to_string(template_list, new_context,
+ return loader.render_to_string(template_list, new_context,
context_instance = context)
new_context['getvars'] = "&%s" % getvars.urlencode()
else:
new_context['getvars'] = ''
+ except (KeyError, AttributeError):
+ new_context = {}
- context.update(new_context)
+ context.update(new_context)
- except (KeyError, AttributeError):
- pass
+ return context
register = Library()