Oops, do not return new_context just yet, update and then return
authorMarkus Törnqvist <mjt@nysv.org>
Wed, 26 Jun 2013 11:43:28 +0000 (14:43 +0300)
committerMarkus Törnqvist <mjt@nysv.org>
Wed, 26 Jun 2013 11:43:28 +0000 (14:43 +0300)
linaro_django_pagination/templatetags/pagination_tags.py

index be22347..a4e4fed 100644 (file)
@@ -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 = {}