From: Radek Czajka Date: Wed, 25 Oct 2023 13:10:02 +0000 (+0200) Subject: Fix. X-Git-Tag: 2.2.11 X-Git-Url: https://git.mdrn.pl/django-pagination.git/commitdiff_plain/b52683ce62ea168913ab8580d8ef2957f3f0ffc0?ds=sidebyside Fix. --- 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)