Commits

offline committed b8fa6a6

little modifications to allow empty string insead of page number

  • Participants
  • Parent commits b72e981

Comments (0)

Files changed (2)

ninjapaginator/util.py

         
         params = request.GET.copy()
         
-        if "page" in params:
+        try:
             self.page_num = int(params.pop('page')[0])
-        else:
+        except (ValueError, KeyError):
             self.page_num = 1
 
         if "per_page" in params:
 from setuptools import setup, find_packages
 setup(
     name = "django-ninjapaginator",
-    version = "0.1.4",
+    version = "0.1.5",
     packages = find_packages(),
     author = "Anderson",
     author_email = "self.anderson@gmail.com",