From: Radek Czajka Date: Fri, 15 Feb 2019 12:38:38 +0000 (+0100) Subject: Further fix for Django 1.10. X-Git-Tag: 2.2.2 X-Git-Url: https://git.mdrn.pl/django-pagination.git/commitdiff_plain/4e7903dbfc111113131fe2e93dee06bed00b1b48?ds=sidebyside Further fix for Django 1.10. --- 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):