From: Markus Törnqvist Date: Wed, 26 Jun 2013 11:43:28 +0000 (+0300) Subject: Oops, do not return new_context just yet, update and then return X-Git-Tag: release-2.1~8^2 X-Git-Url: https://git.mdrn.pl/django-pagination.git/commitdiff_plain/73848ab99035e9b6d0bb6cf2f0483d70aac22b62?ds=sidebyside Oops, do not return new_context just yet, update and then return --- 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 = {}