fnp
/
django-pagination.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OK rst2a is caching too long, so I have generated docs in docs/index.html
[django-pagination.git]
/
pagination
/
middleware.py
diff --git
a/pagination/middleware.py
b/pagination/middleware.py
index
8a541fb
..
dd69377
100644
(file)
--- a/
pagination/middleware.py
+++ b/
pagination/middleware.py
@@
-1,4
+1,8
@@
class PaginationMiddleware(object):
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'])
def process_request(self, request):
try:
request.page = int(request['page'])