From: Markus Törnqvist <mjt@fadconsulting.com>
Date: Wed, 26 Jun 2013 12:57:10 +0000 (+0300)
Subject: Revert "Oops, do not return new_context just yet, update and then return"
X-Git-Tag: release-2.1~7^2~1
X-Git-Url: https://git.mdrn.pl/django-pagination.git/commitdiff_plain/ee4a0ff91a1567ccabdb5eb0d8ff07aad6ffd486?ds=sidebyside

Revert "Oops, do not return new_context just yet, update and then return"

This reverts commit 73848ab99035e9b6d0bb6cf2f0483d70aac22b62.
---

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 = {}