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'] = ''
+ return new_context
except (KeyError, AttributeError):
- new_context = {}
-
- context.update(new_context)
+ pass
return context
TEMPLATE_CONTEXT_PROCESSORS=[
# Request processor needs to be enabled
'django.core.context_processors.request'],
- ROOT_URLCONF="linaro_django_pagination.test_project.urls"))
+ ROOT_URLCONF="linaro_django_pagination.test_project.urls"),
+ TEMPLATE_LOADERS = ['django.template.loaders.app_directories.Loader'],
+ SECRET_KEY = 'not for production',
+ )