From 4e7903dbfc111113131fe2e93dee06bed00b1b48 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 15 Feb 2019 13:38:38 +0100 Subject: [PATCH] Further fix for Django 1.10. --- fnp_django_pagination/__init__.py | 2 +- fnp_django_pagination/templatetags/pagination_tags.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fnp_django_pagination/__init__.py b/fnp_django_pagination/__init__.py index c9d6c73..c6e0cfa 100644 --- a/fnp_django_pagination/__init__.py +++ b/fnp_django_pagination/__init__.py @@ -34,4 +34,4 @@ tools throughout a django application. """ -__version__ = (2, 2, 1, "final", 0) +__version__ = (2, 2, 2, "final", 0) diff --git a/fnp_django_pagination/templatetags/pagination_tags.py b/fnp_django_pagination/templatetags/pagination_tags.py index c56f44d..7f38da5 100644 --- a/fnp_django_pagination/templatetags/pagination_tags.py +++ b/fnp_django_pagination/templatetags/pagination_tags.py @@ -195,8 +195,7 @@ class PaginateNode(Node): new_context = paginate(context) if self.template: template_list.insert(0, self.template) - with context.push(new_context): - return loader.render_to_string(template_list, context) + return loader.render_to_string(template_list, new_context) def do_paginate(parser, token): -- 2.20.1