Fixed #12, updated middleware to access request variable with request.REQUEST dict...
authorleidel <leidel@7f1efe38-554e-0410-b69d-834cb44da2d5>
Tue, 5 Aug 2008 00:37:29 +0000 (00:37 +0000)
committerleidel <leidel@7f1efe38-554e-0410-b69d-834cb44da2d5>
Tue, 5 Aug 2008 00:37:29 +0000 (00:37 +0000)
git-svn-id: https://django-pagination.googlecode.com/svn/trunk@24 7f1efe38-554e-0410-b69d-834cb44da2d5

pagination/middleware.py

index b99a7e3..0bab767 100644 (file)
@@ -5,6 +5,6 @@ class PaginationMiddleware(object):
     """
     def process_request(self, request):
         try:
-            request.page = int(request['page'])
+            request.page = int(request.REQUEST['page'])
         except (KeyError, ValueError):
             request.page = 1
\ No newline at end of file