From ee4a0ff91a1567ccabdb5eb0d8ff07aad6ffd486 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Markus=20T=C3=B6rnqvist?= Date: Wed, 26 Jun 2013 15:57:10 +0300 Subject: [PATCH] Revert "Oops, do not return new_context just yet, update and then return" This reverts commit 73848ab99035e9b6d0bb6cf2f0483d70aac22b62. --- linaro_django_pagination/templatetags/pagination_tags.py | 1 + 1 file changed, 1 insertion(+) diff --git a/linaro_django_pagination/templatetags/pagination_tags.py b/linaro_django_pagination/templatetags/pagination_tags.py index a4e4fed..be22347 100644 --- a/linaro_django_pagination/templatetags/pagination_tags.py +++ b/linaro_django_pagination/templatetags/pagination_tags.py @@ -326,6 +326,7 @@ 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