From b52683ce62ea168913ab8580d8ef2957f3f0ffc0 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 25 Oct 2023 15:10:02 +0200 Subject: [PATCH 1/1] Fix. --- fnp_django_pagination/__init__.py | 2 +- fnp_django_pagination/templatetags/pagination_tags.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fnp_django_pagination/__init__.py b/fnp_django_pagination/__init__.py index b32eaae..99572f4 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, 10, "final", 0) +__version__ = (2, 2, 11, "final", 0) diff --git a/fnp_django_pagination/templatetags/pagination_tags.py b/fnp_django_pagination/templatetags/pagination_tags.py index b47bd12..5dd9319 100644 --- a/fnp_django_pagination/templatetags/pagination_tags.py +++ b/fnp_django_pagination/templatetags/pagination_tags.py @@ -187,14 +187,15 @@ class AutoPaginateNode(Node): class PaginateNode(Node): - def __init__(self, template=None, window=None, margin=None): + def __init__(self, template=None, window=None, margin=None, ignored_vars=None): self.template = template self.window = window self.margin = margin + self.ignored_vars = ignored_vars def render(self, context): template_list = ['pagination/pagination.html'] - new_context = paginate(context, window=self.window, margin=self.margin) + new_context = paginate(context, window=self.window, margin=self.margin, ignored_vars=ignored_vars) if self.template: template_list.insert(0, self.template) return loader.render_to_string(template_list, new_context) -- 2.20.1