Merge pull request #15 from mjtorn/master
authorZygmunt Krynicki <zkrynicki@gmail.com>
Wed, 26 Jun 2013 11:49:21 +0000 (04:49 -0700)
committerZygmunt Krynicki <zkrynicki@gmail.com>
Wed, 26 Jun 2013 11:49:21 +0000 (04:49 -0700)
Unnecessarily early return to be fixed

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