Updated documentation and reduced overall complexity by stripping away the registrati...
[django-pagination.git] / pagination / middleware.py
index 8a541fb..dd69377 100644 (file)
@@ -1,4 +1,8 @@
 class PaginationMiddleware(object):
+    """
+    Inserts a variable representing the current page onto the request object if
+    it exists in either **GET** or **POST** portions of the request.
+    """
     def process_request(self, request):
         try:
             request.page = int(request['page'])