Merge pull request #24 from mktums/patch-1
authorZygmunt Krynicki <zkrynicki@gmail.com>
Wed, 9 Apr 2014 11:39:28 +0000 (13:39 +0200)
committerZygmunt Krynicki <zkrynicki@gmail.com>
Wed, 9 Apr 2014 11:39:28 +0000 (13:39 +0200)
Fixes issues related with #17

linaro_django_pagination/templatetags/pagination_tags.py

index 995edc3..45857f9 100644 (file)
@@ -329,9 +329,7 @@ def paginate(context, window=DEFAULT_WINDOW, margin=DEFAULT_MARGIN):
                 new_context['getvars'] = ''
         return new_context
     except (KeyError, AttributeError):
-        pass
-
-    return context
+        return {}
 
 
 register = Library()