From 73848ab99035e9b6d0bb6cf2f0483d70aac22b62 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Markus=20T=C3=B6rnqvist?= Date: Wed, 26 Jun 2013 14:43:28 +0300 Subject: [PATCH] Oops, do not return new_context just yet, update and then return --- linaro_django_pagination/templatetags/pagination_tags.py | 1 - 1 file changed, 1 deletion(-) diff --git a/linaro_django_pagination/templatetags/pagination_tags.py b/linaro_django_pagination/templatetags/pagination_tags.py index be22347..a4e4fed 100644 --- a/linaro_django_pagination/templatetags/pagination_tags.py +++ b/linaro_django_pagination/templatetags/pagination_tags.py @@ -326,7 +326,6 @@ def paginate(context, window=DEFAULT_WINDOW, margin=DEFAULT_MARGIN): new_context['getvars'] = "&%s" % getvars.urlencode() else: new_context['getvars'] = '' - return new_context except (KeyError, AttributeError): new_context = {} -- 2.20.1