Revert "Oops, do not return new_context just yet, update and then return"
authorMarkus Törnqvist <mjt@fadconsulting.com>
Wed, 26 Jun 2013 12:57:10 +0000 (15:57 +0300)
committerMarkus Törnqvist <mjt@fadconsulting.com>
Wed, 26 Jun 2013 12:57:10 +0000 (15:57 +0300)
This reverts commit 73848ab99035e9b6d0bb6cf2f0483d70aac22b62.

linaro_django_pagination/templatetags/pagination_tags.py

index a4e4fed..be22347 100644 (file)
@@ -326,6 +326,7 @@ def paginate(context, window=DEFAULT_WINDOW, margin=DEFAULT_MARGIN):
                 new_context['getvars'] = "&%s" % getvars.urlencode()
             else:
                 new_context['getvars'] = ''
                 new_context['getvars'] = "&%s" % getvars.urlencode()
             else:
                 new_context['getvars'] = ''
+        return new_context
     except (KeyError, AttributeError):
         new_context = {}
 
     except (KeyError, AttributeError):
         new_context = {}